diff options
author | Matt Corallo <git@bluematt.me> | 2017-10-30 18:56:37 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-11-09 18:41:18 -0500 |
commit | be9f38c6131ab0c7ad96e4f6f3d8b5ae6f870ea9 (patch) | |
tree | c1eb34294a5c39304b360c541d07d0185c0eabb5 /src/net.cpp | |
parent | 3788a8479b4efd481f3e91419bcf347113375112 (diff) |
Do not make it trivial for inbound peers to generate log entries
We should generally avoid writing to debug.log unconditionally for
inbound peers which misbehave (the peer being about to be banned
being an exception, since they cannot do this twice).
To avoid removing logs for outbound peers, a new log is added to
notify users when a new outbound peer is connected which mimics
the version print.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 258599747a..4453f409ad 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1111,7 +1111,7 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) { if (IsBanned(addr) && !whitelisted) { - LogPrintf("connection from %s dropped (banned)\n", addr.ToString()); + LogPrint(BCLog::NET, "connection from %s dropped (banned)\n", addr.ToString()); CloseSocket(hSocket); return; } |