Skip to content

Commit

Permalink
Some more variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Jan 8, 2024
1 parent c0319e2 commit 313484c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libsignal-service-actix/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,24 @@ where

Frame::Continuation(_c) => todo!(),
Frame::Ping(msg) => {
tracing::warn!("Received Ping({:?})", msg);
tracing::warn!(?msg, "received Ping");

continue;
},
Frame::Pong(msg) => {
tracing::trace!("Received Pong({:?})", msg);
tracing::trace!(?msg, "received Pong");

continue;
},
Frame::Text(frame) => {
tracing::warn!("Frame::Text {:?}", frame);
tracing::warn!(?frame, "frame::Text",);

// this is a protocol violation, maybe break; is better?
continue;
},

Frame::Close(c) => {
tracing::warn!("Websocket closing: {:?}", c);
tracing::warn!(?c, "Websocket closing");

break;
},
Expand Down

0 comments on commit 313484c

Please sign in to comment.