log which socket answered when nothing named one

The fallback was silent on success, so a host where it engaged looked identical to one
where it was never reached. Debug level: it runs on a cache miss, not per frame.
This commit is contained in:
Mariano Abad
2026-08-08 15:48:09 -03:00
parent 4220302d40
commit cccfb8af87
+9 -1
View File
@@ -515,7 +515,15 @@ fn probe_runtime_dir(dir: &Path) -> ResultType<Vec<WaylandDisplayInfo>> {
Ok(displays) if displays.is_empty() => { Ok(displays) if displays.is_empty() => {
errs.push(format!("{}: no outputs yet", path.display())) errs.push(format!("{}: no outputs yet", path.display()))
} }
Ok(displays) => return Ok(displays), Ok(displays) => {
// Which socket answered, when nothing in the environment named one.
log::debug!(
"wayland: {} output(s) from {}, found by scanning",
displays.len(),
path.display()
);
return Ok(displays);
}
Err(err) => errs.push(format!("{}: {err}", path.display())), Err(err) => errs.push(format!("{}: {err}", path.display())),
} }
} }