Skip to content

Commit

Permalink
Better debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 29, 2023
1 parent e222a5c commit d85324e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/handler/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub async fn websocket(

if let Err(err) = hb_tx.send(Message::Ping(Bytes::from(""))).await {
if let MailboxError::Closed = err {
debug!("Websocket closed");
debug!("Could not send pong to ws: ws closed");
if let Err(err) = hb_ws_manager
.send(WsManagerMessage::WebsocketClosed(hb_uuid))
.await
Expand All @@ -99,7 +99,7 @@ pub async fn websocket(
Message::Ping(req) => {
if let Err(err) = rx_tx.send(Message::Ping(req)).await {
if let MailboxError::Closed = err {
debug!("Could not ping send to ws: websocket closed");
debug!("Could not pong send to ws: websocket closed");
break;
}
debug!("Sending to ran into tx timeout");
Expand Down

0 comments on commit d85324e

Please sign in to comment.