Clean up warnings

This commit is contained in:
Roderick van Domburg 2021-12-12 20:01:05 +01:00
parent 79c4040a53
commit 8f23c3498f
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451

View file

@ -950,8 +950,11 @@ impl Future for PlayerInternal {
exit(1); exit(1);
} }
} }
Poll::Ready(Err(_)) => { Poll::Ready(Err(e)) => {
warn!("Unable to load <{:?}>\nSkipping to next track", track_id); warn!(
"Skipping to next track, unable to load track <{:?}>: {:?}",
track_id, e
);
debug_assert!(self.state.is_loading()); debug_assert!(self.state.is_loading());
self.send_event(PlayerEvent::EndOfTrack { self.send_event(PlayerEvent::EndOfTrack {
track_id, track_id,
@ -1052,7 +1055,7 @@ impl Future for PlayerInternal {
} }
} }
Err(e) => { Err(e) => {
warn!("Unable to decode samples for track <{:?}: {:?}>\nSkipping to next track", track_id, e); warn!("Skipping to next track, unable to decode samples for track <{:?}>: {:?}", track_id, e);
self.send_event(PlayerEvent::EndOfTrack { self.send_event(PlayerEvent::EndOfTrack {
track_id, track_id,
play_request_id, play_request_id,
@ -1068,11 +1071,7 @@ impl Future for PlayerInternal {
self.handle_packet(packet, normalisation_factor); self.handle_packet(packet, normalisation_factor);
} }
Err(e) => { Err(e) => {
warn!( warn!("Skipping to next track, unable to get next packet for track <{:?}>: {:?}", track_id, e);
"Unable to get packet for track <{:?}: {:?}>\nSkipping to next track",
e,
track_id
);
self.send_event(PlayerEvent::EndOfTrack { self.send_event(PlayerEvent::EndOfTrack {
track_id, track_id,
play_request_id, play_request_id,