1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 03:09:06 +03:00

mux: adjust error logs down to warn + info

Unhandled unknown sequences aren't errors per-se
This commit is contained in:
Wez Furlong 2021-03-23 08:16:32 -07:00
parent f301fc6ecc
commit 317077123f

View File

@ -402,7 +402,7 @@ impl wezterm_term::DeviceControlHandler for LocalPaneDCSHandler {
&& mode.params[0] == 1000 && mode.params[0] == 1000
&& mode.intermediates.is_empty() && mode.intermediates.is_empty()
{ {
log::error!("tmux -CC mode requested"); log::info!("tmux -CC mode requested");
// Create a new domain to host these tmux tabs // Create a new domain to host these tmux tabs
let domain = TmuxDomain::new(self.pane_id); let domain = TmuxDomain::new(self.pane_id);
@ -425,7 +425,7 @@ impl wezterm_term::DeviceControlHandler for LocalPaneDCSHandler {
// if so we should arrange to call domain.attach() and make // if so we should arrange to call domain.attach() and make
// it do the right thing. // it do the right thing.
} else { } else {
log::error!("unknown DeviceControlMode::Enter {:?}", mode,); log::warn!("unknown DeviceControlMode::Enter {:?}", mode,);
} }
} }
DeviceControlMode::Exit => { DeviceControlMode::Exit => {
@ -442,7 +442,7 @@ impl wezterm_term::DeviceControlHandler for LocalPaneDCSHandler {
if let Some(tmux) = self.tmux_domain.as_ref() { if let Some(tmux) = self.tmux_domain.as_ref() {
tmux.advance(c); tmux.advance(c);
} else { } else {
log::error!( log::warn!(
"unhandled DeviceControlMode::Data {:x} {}", "unhandled DeviceControlMode::Data {:x} {}",
c, c,
(c as char).escape_debug() (c as char).escape_debug()
@ -450,7 +450,7 @@ impl wezterm_term::DeviceControlHandler for LocalPaneDCSHandler {
} }
} }
_ => { _ => {
log::error!("unhandled: {:?}", control); log::warn!("unhandled: {:?}", control);
} }
} }
} }