Skip to content

Commit

Permalink
fix: reduce log volume in stats thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Wójcik committed Jan 24, 2024
1 parent c1d327c commit 277267c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Gateway {
match wgapi.read_interface_data() {
Ok(host) => {
let peers = host.peers;
debug!("Found {} peers configured on WireGuard interface: {peers:?}", peers.len());
debug!("Found {} peers configured on WireGuard interface", peers.len());
for peer in peers
.into_values()
.filter(|p| p.last_handshake.map_or(
Expand All @@ -190,7 +190,7 @@ impl Gateway {
peer_map.insert(peer.public_key.clone(), peer.clone());
yield (&peer).into();
};
debug!("Stats for peer {peer:?} have not changed. Skipping...");
debug!("Stats for peer {} have not changed. Skipping...", peer.public_key);
}
},
Err(err) => error!("Failed to retrieve WireGuard interface stats {err}"),
Expand Down

0 comments on commit 277267c

Please sign in to comment.