From b66bd788b23256a2127a1352693fdd3f929d9c4b Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sun, 16 Oct 2022 12:57:37 +0100 Subject: [PATCH] fix: logging for creating bar incorrect still --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d5008ab..4721282 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,7 +111,7 @@ fn create_bars( let outputs = wl.outputs.as_slice(); debug!("Received {} outputs from Wayland", outputs.len()); - debug!("Output names: {:?}", outputs); + debug!("Outputs: {:?}", outputs); let num_monitors = display.n_monitors(); @@ -122,7 +122,10 @@ fn create_bars( // TODO: Could we use an Arc or `Cow` here to avoid cloning? config.monitors.as_ref().map_or_else( - || create_bar(app, &monitor, monitor_name, config.clone()), + || { + info!("Creating bar on '{}'", monitor_name); + create_bar(app, &monitor, monitor_name, config.clone()) + }, |config| { let config = config.get(monitor_name); match &config {