Relax some non-fatal events to WARN level

Fixes #1029
This commit is contained in:
Roderick van Domburg 2022-07-30 22:39:05 +02:00
parent 786f8832d1
commit 5344258ba9
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4
2 changed files with 3 additions and 3 deletions

View file

@ -431,7 +431,7 @@ impl SpircTask {
Some(result) => match result { Some(result) => match result {
Ok((username, frame)) => { Ok((username, frame)) => {
if username != self.session.username() { if username != self.session.username() {
error!("could not dispatch remote update: frame was intended for {}", username); warn!("could not dispatch remote update: frame was intended for {}", username);
} else if let Err(e) = self.handle_remote_update(frame) { } else if let Err(e) = self.handle_remote_update(frame) {
error!("could not dispatch remote update: {}", e); error!("could not dispatch remote update: {}", e);
} }
@ -475,7 +475,7 @@ impl SpircTask {
}, },
cmd = async { commands?.recv().await }, if commands.is_some() => if let Some(cmd) = cmd { cmd = async { commands?.recv().await }, if commands.is_some() => if let Some(cmd) = cmd {
if let Err(e) = self.handle_command(cmd) { if let Err(e) = self.handle_command(cmd) {
error!("could not dispatch command: {}", e); warn!("could not dispatch command: {}", e);
} }
}, },
event = async { player_events?.recv().await }, if player_events.is_some() => if let Some(event) = event { event = async { player_events?.recv().await }, if player_events.is_some() => if let Some(event) = event {

View file

@ -301,7 +301,7 @@ impl Session {
} }
Ok(Event::Eof) => break, Ok(Event::Eof) => break,
Ok(_) => (), Ok(_) => (),
Err(e) => error!( Err(e) => warn!(
"Error parsing XML at position {}: {:?}", "Error parsing XML at position {}: {:?}",
reader.buffer_position(), reader.buffer_position(),
e e