Browse Source

Logging fix: size() was called on wrong collection, leading to confusing logging output

reduce-reward-shares
catbref 2 years ago
parent
commit
c032b92d0d
  1. 2
      src/main/java/org/qortal/controller/OnlineAccountsManager.java

2
src/main/java/org/qortal/controller/OnlineAccountsManager.java

@ -652,7 +652,7 @@ public class OnlineAccountsManager {
.filter(account -> outgoingLeadingBytes.contains(account.getPublicKey()[0])) .filter(account -> outgoingLeadingBytes.contains(account.getPublicKey()[0]))
.forEach(outgoingOnlineAccounts::add); .forEach(outgoingOnlineAccounts::add);
if (outgoingLeadingBytes.size() > beforeAddSize) if (outgoingOnlineAccounts.size() > beforeAddSize)
LOGGER.debug(String.format("Going to send %d online accounts for timestamp %d and leading bytes %s", LOGGER.debug(String.format("Going to send %d online accounts for timestamp %d and leading bytes %s",
outgoingOnlineAccounts.size() - beforeAddSize, outgoingOnlineAccounts.size() - beforeAddSize,
timestamp, timestamp,

Loading…
Cancel
Save