decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
733 stars 289 forks source link

server: Consolidate ban reason logging. #3309

Closed davecgh closed 3 months ago

davecgh commented 3 months ago

This requires #3299.

This consolidates the logging for peer banning and adds a reason parameter to help enforce consistent logging as well as make it much less likely that a peer is banned without logging why.