Skip to content

Commit

Permalink
feat(worker): log new socket bindings at debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Apr 24, 2024
1 parent c627281 commit a94e67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/centipede_router/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ impl<'p> HandleOutgoing<'p> {
/// to another peer on the Centipede network.
#[must_use = "send packet obligation must be fulfilled"]
pub struct SendPacket {
// TODO: make this a list so that we can send the same packet to multiple peers efficiently.
/// The link to send the packet over.
link: Link,

Expand Down
2 changes: 1 addition & 1 deletion packages/centipede_worker/src/sockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Sockets {

/// Bind and configure a socket.
fn bind_socket(local_addr: SocketAddr) -> io::Result<Socket> {
log::trace!("binding to {}", local_addr);
log::debug!("binding to {}", local_addr);

// Create a new UDP socket.
let socket = Socket::new(socket2::Domain::IPV4, socket2::Type::DGRAM, None)?;
Expand Down

0 comments on commit a94e67a

Please sign in to comment.