forked from Qortal/qortal
Don't log network stats if no messages have been received, as otherwise this floods the logs with empty stats due to failed connections.
This commit is contained in:
parent
d8ca3a455d
commit
a1365e57d8
@ -841,7 +841,7 @@ public class Peer {
|
||||
}
|
||||
}
|
||||
|
||||
if (logStats) {
|
||||
if (logStats && this.receivedMessageStats.size() > 0) {
|
||||
StringBuilder statsBuilder = new StringBuilder(1024);
|
||||
statsBuilder.append("peer ").append(this).append(" message stats:\n=received=");
|
||||
appendMessageStats(statsBuilder, this.receivedMessageStats);
|
||||
|
Loading…
Reference in New Issue
Block a user