Skip to content

Commit d3845c9

Browse files
authored
transport_service/logs: Provide less details for trace logs (#292)
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 <alexandru.vasile@parity.io>
1 parent eb0d6f2 commit d3845c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocol/transport_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl KeepAliveTracker {
180180
?peer,
181181
?connection_id,
182182
?self.keep_alive_timeout,
183-
last_activity = ?self.last_activity,
183+
last_activity = ?self.last_activity.len(),
184184
pending_keep_alive_timeouts = ?self.pending_keep_alive_timeouts.len(),
185185
"substream activity",
186186
);

0 commit comments

Comments
 (0)