Skip to content

Commit

Permalink
add more loggings (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Oct 3, 2023
1 parent 65e9de3 commit 28ec7a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extensions/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ impl Client {
let ws = Arc::new(ws);
let ws2 = ws.clone();

tracing::info!("Endpoint connected");

tokio::spawn(async move {
ws2.on_disconnect().await;
tracing::info!("Endpoint disconnected");
if let Err(e) = disconnect_tx.send(()).await {
tracing::warn!("Unable to send disconnect: {}", e);
}
Expand Down Expand Up @@ -315,6 +318,7 @@ impl Client {
tracing::trace!("Received message {message:?}");
match message {
Some(Message::RotateEndpoint) => {
tracing::info!("Rotate endpoint");
ws = build_ws().await;
}
Some(message) => handle_message(message, ws.clone()),
Expand Down

0 comments on commit 28ec7a1

Please sign in to comment.