Skip to content

Commit

Permalink
convert dbg!() to log::debug!()
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Dec 13, 2024
1 parent 1a1a5d9 commit f057128
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl MultiPeerBackend for PubSocketBackend {
match message {
Some(Ok(m)) => backend.message_received(&peer_id, m),
Some(Err(e)) => {
dbg!(e);
log::debug!("Error receiving message: {:?}", e);
backend.peer_disconnected(&peer_id);
break;
}
Expand Down Expand Up @@ -188,7 +188,7 @@ impl SocketSend for PubSocket {
if e.kind() == ErrorKind::BrokenPipe {
dead_peers.push(subscriber.key().clone());
} else {
dbg!(e);
log::error!("Error receiving message: {:?}", e);
}
}
Err(ZmqError::BufferFull(_)) => {

Check failure on line 194 in src/pub.rs

View workflow job for this annotation

GitHub Actions / Check and Lint

this match arm has an identical body to another arm
Expand All @@ -197,8 +197,8 @@ impl SocketSend for PubSocket {
// SHALL silently drop the message if the queue for a subscriber is full.
}
Err(e) => {
dbg!(e);
todo!()
log::error!("Error receiving message: {:?}", e);
return Err(e);
}
}
break;
Expand Down

0 comments on commit f057128

Please sign in to comment.