diff options
author | Alex Auvolat <alex@adnab.me> | 2023-03-09 14:29:31 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-03-09 14:29:31 +0100 |
commit | 326fd2dada42221601bce87bc97afc2d948bece8 (patch) | |
tree | 5b99b37e78046ecd971a5a634524db40a1356ee8 | |
parent | 26cb185bbf3a10ed0d81864a76fcd72732050a03 (diff) | |
download | wgautomesh-326fd2dada42221601bce87bc97afc2d948bece8.tar.gz wgautomesh-326fd2dada42221601bce87bc97afc2d948bece8.zip |
change log levels
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 1730edc..192dd91 100644 --- a/src/main.rs +++ b/src/main.rs @@ -226,7 +226,7 @@ impl Daemon { let mut i = 0; loop { if let Err(e) = self.wg_loop_iter(i) { - error!("Wg loop error: {}", e); + error!("Wireguard configuration loop error: {}", e); } i = i + 1; std::thread::sleep(TRY_INTERVAL); @@ -324,7 +324,7 @@ impl Daemon { .map_err(|e| anyhow!("decrypt error: {}", e))?; let gossip = bincode::deserialize(&plaintext)?; - debug!("RECV {}\t{:?}", src, gossip); + trace!("RECV {}\t{:?}", src, gossip); Ok((src, gossip)) } @@ -436,7 +436,7 @@ impl State { for (gossip_ip, _) in peer_vec.into_iter().take(GOSSIP_PEERS) { let addr = SocketAddr::new(gossip_ip, daemon.config.gossip_port); - debug!("SEND {}\t{:?}", addr, gossip); + trace!("SEND {}\t{:?}", addr, gossip); daemon.socket.send_to(&packet, addr)?; } @@ -483,7 +483,7 @@ impl State { } }; if let Some(propagate) = propagate { - info!("Propagating announce: {:?}", propagate); + debug!("Propagating announce: {:?}", propagate); self.send_gossip(daemon, propagate)?; } Ok(()) |