File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -811,7 +811,15 @@ async def connect(self, remote: Node) -> BasePeer:
811
811
except BadAckMessage :
812
812
# This is kept separate from the `expected_exceptions` to be sure that we aren't
813
813
# silencing an error in our authentication code.
814
- self .logger .info ('Got bad auth ack from %r' , remote )
814
+ self .logger .error ('Got bad auth ack from %r' , remote )
815
+ # dump the full stacktrace in the debug logs
816
+ self .logger .debug ('Got bad auth ack from %r' , remote , exc_info = True )
817
+ except MalformedMessage :
818
+ # This is kept separate from the `expected_exceptions` to be sure that we aren't
819
+ # silencing an error in how we decode messages during handshake.
820
+ self .logger .error ('Got malformed response from %r during handshake' , remote )
821
+ # dump the full stacktrace in the debug logs
822
+ self .logger .debug ('Got malformed response from %r' , remote , exc_info = True )
815
823
except expected_exceptions as e :
816
824
self .logger .debug ("Could not complete handshake with %r: %s" , remote , repr (e ))
817
825
except Exception :
You can’t perform that action at this time.
0 commit comments