forwarding: log no-route SessionDatagram drops at debug level

Logs source, destination, and payload size at the existing no-route
drop site so investigations can attribute transit drops without
enabling trace-level instrumentation. Diagnostic-only; no behavior
change on the success path.
This commit is contained in:
Johnathan Corgan
2026-05-23 14:34:40 +00:00
parent 9c0dcd0f59
commit 050483f3bf
+6
View File
@@ -84,6 +84,12 @@ impl Node {
self.stats_mut()
.forwarding
.record_drop_no_route(payload.len());
debug!(
src = %self.peer_display_name(&datagram.src_addr),
dest = %self.peer_display_name(&datagram.dest_addr),
bytes = payload.len(),
"Dropping transit SessionDatagram: no route to destination"
);
self.send_routing_error(&datagram).await;
return;
}