Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore committed Nov 2, 2024
1 parent 0d3851d commit 69861f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/engineioxide/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ where
.expect("Pong rx should be locked only once");

#[cfg(feature = "tracing")]
tracing::debug!("[sid={}] heartbeat receiver routine started", self.id);
tracing::debug!(sid = ?self.id, "heartbeat receiver routine started");

loop {
tokio::time::timeout(interval + timeout, heartbeat_rx.recv())
Expand All @@ -383,7 +383,7 @@ where
.ok_or(Error::HeartbeatTimeout)?;

#[cfg(feature = "tracing")]
tracing::debug!("[sid={}] ping received, sending pong", self.id);
tracing::trace!(sid = ?self.id, "ping received, sending pong");
self.internal_tx
.try_send(smallvec![Packet::Pong])
.map_err(|_| Error::HeartbeatTimeout)?;
Expand Down

0 comments on commit 69861f9

Please sign in to comment.