Skip to content
Unverified Commit 5559b752 authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

substrate: peer_store: log warn on disconnecting because of reputation (#1299)



* substrate: peer_store: log error on disconnecting because of reputation

Disconnecting and banning a peer because of negative reputation is
usually an indicative of one of two things:
1. We've got a bug that forces disconnects.
2. We've got malicious peers that try to attack us.

We both cases I don't think we should hide this behind a trace log
and we should log errors, so that things are easy to notice and
debug/mitigated.

Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>

* Move from error to warn

Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>

---------

Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>
parent 109287f4
Pipeline #385721 failed with stages
in 52 minutes and 27 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment