Skip to content

Commit

Permalink
transport_service/logs: Provide less details for trace logs (#292)
Browse files Browse the repository at this point in the history
Tiny PR to provide fewer details for trace logs of the transport service
components.

During testing of Kusama litep2p on local nodes, I noticed that the
information provided by the `last_activity` is excessive. This is a dump
of all connected peers with a timestamp, and for 1k inbound and 1k
outbound peers provides too much information.

cc @paritytech/networking

Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv authored Nov 27, 2024
1 parent eb0d6f2 commit d3845c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/transport_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl KeepAliveTracker {
?peer,
?connection_id,
?self.keep_alive_timeout,
last_activity = ?self.last_activity,
last_activity = ?self.last_activity.len(),
pending_keep_alive_timeouts = ?self.pending_keep_alive_timeouts.len(),
"substream activity",
);
Expand Down

0 comments on commit d3845c9

Please sign in to comment.