1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

mux client: revise log level

These aren't errors per-se, so make them warnings.
This commit is contained in:
Wez Furlong 2021-04-03 14:59:40 -07:00
parent 1658627e2c
commit fe6a3a2cf0

View File

@ -476,7 +476,7 @@ impl Reconnectable {
if unix_dom.no_serve_automatically || !initial { if unix_dom.no_serve_automatically || !initial {
bail!("failed to connect to {}: {}", sock_path.display(), e); bail!("failed to connect to {}: {}", sock_path.display(), e);
} }
log::error!( log::warn!(
"While connecting to {}: {}. Will try spawning the server.", "While connecting to {}: {}. Will try spawning the server.",
sock_path.display(), sock_path.display(),
e e
@ -493,10 +493,14 @@ impl Reconnectable {
std::thread::spawn(move || match child.wait_with_output() { std::thread::spawn(move || match child.wait_with_output() {
Ok(out) => { Ok(out) => {
if let Ok(stdout) = std::str::from_utf8(&out.stdout) { 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) { if let Ok(stderr) = std::str::from_utf8(&out.stderr) {
log::error!("stderr: {}", stderr); if !stderr.is_empty() {
log::warn!("stderr: {}", stderr);
}
} }
} }
Err(err) => { Err(err) => {