Reduce network bridge logging verbosity (#2717)

* Those should really be trace.

- Very spammy
- And they in fact trace the execution
- Should not be enabled lightly - will slow network bridge down.

* Make report peers debug again.
This commit is contained in:
Robert Klotzner
2021-03-27 00:19:43 +01:00
committed by GitHub
parent 67e95d1b8e
commit 6ea6299bca
+11 -11
View File
@@ -217,7 +217,7 @@ where
} }
Action::SendValidationMessages(msgs) => { Action::SendValidationMessages(msgs) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "SendValidationMessages", action = "SendValidationMessages",
num_messages = %msgs.len(), num_messages = %msgs.len(),
@@ -234,7 +234,7 @@ where
} }
Action::SendCollationMessages(msgs) => { Action::SendCollationMessages(msgs) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "SendCollationMessages", action = "SendCollationMessages",
num_messages = %msgs.len(), num_messages = %msgs.len(),
@@ -251,7 +251,7 @@ where
} }
Action::SendRequests(reqs, if_disconnected) => { Action::SendRequests(reqs, if_disconnected) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "SendRequests", action = "SendRequests",
num_requests = %reqs.len(), num_requests = %reqs.len(),
@@ -270,7 +270,7 @@ where
peer_set, peer_set,
connected, connected,
} => { } => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "ConnectToValidators", action = "ConnectToValidators",
peer_set = ?peer_set, peer_set = ?peer_set,
@@ -297,7 +297,7 @@ where
} }
Action::DisconnectPeer(peer, peer_set) => { Action::DisconnectPeer(peer, peer_set) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "DisconnectPeer", action = "DisconnectPeer",
?peer, ?peer,
@@ -307,7 +307,7 @@ where
} }
Action::ActiveLeaves(ActiveLeavesUpdate { activated, deactivated }) => { Action::ActiveLeaves(ActiveLeavesUpdate { activated, deactivated }) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "ActiveLeaves", action = "ActiveLeaves",
num_activated = %activated.len(), num_activated = %activated.len(),
@@ -335,7 +335,7 @@ where
} }
Action::BlockFinalized(number) => { Action::BlockFinalized(number) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "BlockFinalized" action = "BlockFinalized"
); );
@@ -350,7 +350,7 @@ where
}, },
Action::PeerConnected(peer_set, peer, role) => { Action::PeerConnected(peer_set, peer, role) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "PeerConnected", action = "PeerConnected",
peer_set = ?peer_set, peer_set = ?peer_set,
@@ -424,7 +424,7 @@ where
} }
} }
Action::PeerDisconnected(peer_set, peer) => { Action::PeerDisconnected(peer_set, peer) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "PeerDisconnected", action = "PeerDisconnected",
peer_set = ?peer_set, peer_set = ?peer_set,
@@ -452,7 +452,7 @@ where
} }
}, },
Action::PeerMessages(peer, v_messages, c_messages) => { Action::PeerMessages(peer, v_messages, c_messages) => {
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
action = "PeerMessages", action = "PeerMessages",
peer = ?peer, peer = ?peer,
@@ -485,7 +485,7 @@ where
Action::SendMessage(msg) => ctx.send_message(msg).await, Action::SendMessage(msg) => ctx.send_message(msg).await,
} }
tracing::debug!( tracing::trace!(
target: LOG_TARGET, target: LOG_TARGET,
elapsed = ?before_action_process.elapsed(), elapsed = ?before_action_process.elapsed(),
"Processed action", "Processed action",