Clean up log levels in sc_network (#8529)

* Clean up log levels in sc_network

* Fix imports
This commit is contained in:
Pierre Krieger
2021-04-05 20:18:47 +02:00
committed by GitHub
parent 6092b56dda
commit b16bc0552e
5 changed files with 83 additions and 83 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ impl<B: BlockT + 'static, H: ExHashT> TransactionsHandler<B, H> {
) {
// sending transaction to light node is considered a bad behavior
if matches!(self.local_role, config::Role::Light) {
trace!(target: "sync", "Peer {} is trying to send transactions to the light node", who);
debug!(target: "sync", "Peer {} is trying to send transactions to the light node", who);
self.service.disconnect_peer(who, self.protocol_name.clone());
self.service.report_peer(who, rep::UNEXPECTED_TRANSACTIONS);
return;