Tracing support (#3372)

* Tracing support

* Add console subscriber

* Add console subscriber
This commit is contained in:
Jai Agrawal
2025-03-09 13:01:24 -07:00
committed by GitHub
parent 9c5d817a8a
commit 5c8ed9a8ca
14 changed files with 306 additions and 52 deletions

View File

@@ -114,7 +114,7 @@ pub async fn ws_init(
.insert(socket_id);
#[cfg(debug_assertions)]
log::info!("Connection {socket_id} opened by {}", user.id);
tracing::info!("Connection {socket_id} opened by {}", user.id);
broadcast_friends(
user.id,
@@ -161,7 +161,10 @@ pub async fn ws_init(
#[cfg(debug_assertions)]
if !message.is_binary() {
log::info!("Received message from {socket_id}: {:?}", message);
tracing::info!(
"Received message from {socket_id}: {:?}",
message
);
}
match message {