Skip to content

Commit 75d4f23

Browse files
author
Matthew Fisher
committed
throw error logs on a SendError/RecvError
Signed-off-by: Matthew Fisher <[email protected]>
1 parent 5ed81dc commit 75d4f23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/chat_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ fn connection_handler(
4747
}
4848
}
4949
NetworkEvent::SendError(err, msg) => {
50-
info!(
50+
error!(
5151
"NetworkEvent::SendError (payload [{:?}]): {:?}",
5252
msg.payload, err
5353
);
5454
}
5555
NetworkEvent::RecvError(err) => {
56-
info!("NetworkEvent::RecvError: {:?}", err);
56+
error!("NetworkEvent::RecvError: {:?}", err);
5757
}
5858
_ => {}
5959
}

examples/simple_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ fn connection_handler(mut events: EventReader<NetworkEvent>, mut transport: ResM
4343
info!("{} sent a message: {:?}", handle, msg);
4444
}
4545
NetworkEvent::SendError(err, msg) => {
46-
info!(
46+
error!(
4747
"NetworkEvent::SendError (payload [{:?}]): {:?}",
4848
msg.payload, err
4949
);
5050
}
5151
NetworkEvent::RecvError(err) => {
52-
info!("NetworkEvent::RecvError: {:?}", err);
52+
error!("NetworkEvent::RecvError: {:?}", err);
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)