Skip to content

Commit

Permalink
fix some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Feb 26, 2024
1 parent bad352c commit 1cdfd7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async fn accept_connection(
) {
let addr = stream.peer_addr().expect("peer address");
let ws_stream = accept_async(stream).await.expect("Ws handshake");
info!("accepted Ws connection: {}", addr);
info!(target: LOG_TARGET, "accepted Ws connection: {}", addr);

let (mut ws_out, mut ws_in) = ws_stream.split();
let (message_tx, mut message_rx) = tokio::sync::mpsc::channel::<Message>(32);
Expand Down Expand Up @@ -176,7 +176,7 @@ async fn accept_connection(
_ => (),
}
}
info!("closing Ws connection: {}", addr);
info!(target: LOG_TARGET, "closing Ws connection: {}", addr);
}

#[derive(Deserialize, Debug)]
Expand Down

0 comments on commit 1cdfd7a

Please sign in to comment.