style: refine logging verbosity and improve diagnostic messages

Demote baseline telemetry to debug level, add context to rate controller warnings, and remove redundant string conversions in reflector selection logs.
This commit is contained in:
Nils Andreas Svee committed 2026-04-22 22:09:26 +07:00
1 parent e22c100e57
commit a81d208c0d
3 files changed
+14 -10

No files matched your search

+4 -4
View File
@@ -62,7 +62,7 @@ impl ReflectorSelector {
// Include all current peers
for reflector in reflectors_peers.iter() {
debug!("Current peer: {}", reflector.to_string());
debug!("Current peer: {}", reflector);
next_peers.push(*reflector);
}
@@ -72,7 +72,7 @@ impl ReflectorSelector {
if next_peers.contains(next_candidate) {
continue;
}
debug!("Next candidate: {}", next_candidate.to_string());
debug!("Next candidate: {}", next_candidate);
next_peers.push(*next_candidate);
}
@@ -98,11 +98,11 @@ impl ReflectorSelector {
if owd_recent.contains_key(&peer) {
let rtt = (owd_recent[&peer].down_ewma + owd_recent[&peer].up_ewma) as u64;
candidates.push((peer, rtt));
info!("Candidate reflector: {} RTT: {}", peer.to_string(), rtt);
info!("Candidate reflector: {} RTT: {}", peer, rtt);
} else {
info!(
"No data found from candidate reflector: {} - skipping",
peer.to_string()
peer
);
}
}