Improve logging a bit
This commit is contained in:
parent
3c70ae1da3
commit
87ea9aa668
5 changed files with 62 additions and 53 deletions
src/handlers/v1/ws/relays
|
@ -77,10 +77,12 @@ impl StreamHandler<Result<ws::Message, ProtocolError>> for RelaysWs {
|
|||
|
||||
match msg {
|
||||
ws::Message::Ping(msg) => {
|
||||
log::trace!("Received ping from relay-client: {:?}", msg);
|
||||
self.hb = Instant::now();
|
||||
ctx.pong(&msg)
|
||||
}
|
||||
ws::Message::Pong(_) => {
|
||||
log::trace!("Received pong from relay-client");
|
||||
self.hb = Instant::now();
|
||||
}
|
||||
ws::Message::Text(_) => log::debug!("Received unexpected text in relays ws"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue