From fe6a3a2cf01d39090ffdadf73166fe31701d2694 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 3 Apr 2021 14:59:40 -0700 Subject: [PATCH] mux client: revise log level These aren't errors per-se, so make them warnings. --- wezterm-client/src/client.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wezterm-client/src/client.rs b/wezterm-client/src/client.rs index e840d2a28..3be254c12 100644 --- a/wezterm-client/src/client.rs +++ b/wezterm-client/src/client.rs @@ -476,7 +476,7 @@ impl Reconnectable { if unix_dom.no_serve_automatically || !initial { bail!("failed to connect to {}: {}", sock_path.display(), e); } - log::error!( + log::warn!( "While connecting to {}: {}. Will try spawning the server.", sock_path.display(), e @@ -493,10 +493,14 @@ impl Reconnectable { std::thread::spawn(move || match child.wait_with_output() { Ok(out) => { if let Ok(stdout) = std::str::from_utf8(&out.stdout) { - log::error!("stdout: {}", stdout); + if !stdout.is_empty() { + log::warn!("stdout: {}", stdout); + } } if let Ok(stderr) = std::str::from_utf8(&out.stderr) { - log::error!("stderr: {}", stderr); + if !stderr.is_empty() { + log::warn!("stderr: {}", stderr); + } } } Err(err) => {