diff --git a/core/java/src/net/i2p/crypto/ElGamalAESEngine.java b/core/java/src/net/i2p/crypto/ElGamalAESEngine.java index 31f2f104b021c1693ae59d5863c13dd09aa01435..9b129835e5d1e95130be135c461f981f1d6b57d3 100644 --- a/core/java/src/net/i2p/crypto/ElGamalAESEngine.java +++ b/core/java/src/net/i2p/crypto/ElGamalAESEngine.java @@ -93,8 +93,8 @@ public class ElGamalAESEngine { decrypted = decryptExistingSession(data, key, targetPrivateKey, foundTags, usedKey, foundKey); if (decrypted != null) { _context.statManager().updateFrequency("crypto.elGamalAES.decryptExistingSession"); - if ( (foundTags.size() > 0) && (_log.shouldLog(Log.WARN)) ) - _log.warn(id + ": ElG/AES decrypt success with " + st + ": found tags: " + foundTags); + if ( (foundTags.size() > 0) && (_log.shouldLog(Log.DEBUG)) ) + _log.debug(id + ": ElG/AES decrypt success with " + st + ": found tags: " + foundTags); wasExisting = true; } else { _context.statManager().updateFrequency("crypto.elGamalAES.decryptFailed"); @@ -107,8 +107,8 @@ public class ElGamalAESEngine { decrypted = decryptNewSession(data, targetPrivateKey, foundTags, usedKey, foundKey); if (decrypted != null) { _context.statManager().updateFrequency("crypto.elGamalAES.decryptNewSession"); - if ( (foundTags.size() > 0) && (_log.shouldLog(Log.WARN)) ) - _log.warn("ElG decrypt success: found tags: " + foundTags); + if ( (foundTags.size() > 0) && (_log.shouldLog(Log.DEBUG)) ) + _log.debug("ElG decrypt success: found tags: " + foundTags); } else { _context.statManager().updateFrequency("crypto.elGamalAES.decryptFailed"); if (_log.shouldLog(Log.WARN)) diff --git a/core/java/src/net/i2p/stat/Rate.java b/core/java/src/net/i2p/stat/Rate.java index a8b6553cc37a60f0fb143af82775ee617372b766..54ac391d48b1ba7930f5a082f1c93138a0357ff8 100644 --- a/core/java/src/net/i2p/stat/Rate.java +++ b/core/java/src/net/i2p/stat/Rate.java @@ -189,8 +189,8 @@ public class Rate { long measuredPeriod = now - _lastCoalesceDate; if (measuredPeriod < _period - SLACK) { // no need to coalesce (assuming we only try to do so once per minute) - if (_log.shouldLog(Log.WARN)) - _log.warn("not coalescing, measuredPeriod = " + measuredPeriod + " period = " + _period); + if (_log.shouldLog(Log.DEBUG)) + _log.debug("not coalescing, measuredPeriod = " + measuredPeriod + " period = " + _period); return; } diff --git a/router/java/src/net/i2p/router/message/GarlicMessageBuilder.java b/router/java/src/net/i2p/router/message/GarlicMessageBuilder.java index 23ca08466ddebb38ce143ad8dfcc783f00be935a..5d6b37a96c140a9bb26e072268077f4afed409bf 100644 --- a/router/java/src/net/i2p/router/message/GarlicMessageBuilder.java +++ b/router/java/src/net/i2p/router/message/GarlicMessageBuilder.java @@ -123,13 +123,13 @@ public class GarlicMessageBuilder { long timeFromNow = config.getExpiration() - ctx.clock().now(); if (timeFromNow < 1*1000) { - if (log.shouldLog(Log.WARN)) - log.warn("Building a message expiring in " + timeFromNow + "ms: " + config, new Exception("created by")); + if (log.shouldLog(Log.DEBUG)) + log.debug("Building a message expiring in " + timeFromNow + "ms: " + config, new Exception("created by")); return null; } - if (log.shouldLog(Log.WARN)) - log.warn("CloveSet size for message " + msg.getUniqueId() + " is " + cloveSet.length + if (log.shouldLog(Log.DEBUG)) + log.debug("CloveSet size for message " + msg.getUniqueId() + " is " + cloveSet.length + " and encrypted message data is " + encData.length); return msg; diff --git a/router/java/src/net/i2p/router/peermanager/PeerManager.java b/router/java/src/net/i2p/router/peermanager/PeerManager.java index 38cbc6236f2eafbe8418ca198d0d59eb878e927e..2fcebfedf2f3cdea4e41b94e2b44bb0fbca9e071 100644 --- a/router/java/src/net/i2p/router/peermanager/PeerManager.java +++ b/router/java/src/net/i2p/router/peermanager/PeerManager.java @@ -225,8 +225,8 @@ class PeerManager { if (caps.indexOf(capability) >= 0) rv.add(ri.getIdentity().calculateHash()); } - if (_log.shouldLog(Log.WARN)) - _log.warn("Peers with capacity " + capability + ": " + rv.size()); + if (_log.shouldLog(Log.DEBUG)) + _log.debug("Peers with capacity " + capability + ": " + rv.size()); return rv; } } diff --git a/router/java/src/net/i2p/router/peermanager/PeerProfile.java b/router/java/src/net/i2p/router/peermanager/PeerProfile.java index 5dd8f9365d6362307ba1f9bba731d6c4f3c2aa68..c8c51ba5eaab34901fc5f6c800d20147af44bc65 100644 --- a/router/java/src/net/i2p/router/peermanager/PeerProfile.java +++ b/router/java/src/net/i2p/router/peermanager/PeerProfile.java @@ -302,13 +302,13 @@ public class PeerProfile { } } - if (_log.shouldLog(Log.WARN) ) { + if (_log.shouldLog(Log.DEBUG) ) { StringBuffer buf = new StringBuffer(128); buf.append("Updating 1m throughput after ").append(size).append(" to "); for (int i = 0; i < THROUGHPUT_COUNT; i++) buf.append(_peakTunnel1mThroughput[i]).append(','); buf.append(" for ").append(_peer.toBase64()); - _log.warn(buf.toString()); + _log.debug(buf.toString()); } } } diff --git a/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java b/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java index ea6223ce166b784b84f0b6458f4c1f318cc63da4..b71bcf40a636ce2a1bccce1e8d819b4cbb6e6e83 100644 --- a/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java +++ b/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java @@ -124,8 +124,8 @@ class FIFOBandwidthRefiller implements Runnable { } return true; } else { - if (_log.shouldLog(Log.WARN)) - _log.warn("Refresh delay too fast (" + numMs + ")"); + if (_log.shouldLog(Log.DEBUG)) + _log.debug("Refresh delay too fast (" + numMs + ")"); return false; } } diff --git a/router/java/src/net/i2p/router/transport/udp/InboundMessageFragments.java b/router/java/src/net/i2p/router/transport/udp/InboundMessageFragments.java index e0d309526e650f8ee60ececf33cd91001c02e253..a8f54c21d85b63bca15a9b7f5e43dcb143ccdae4 100644 --- a/router/java/src/net/i2p/router/transport/udp/InboundMessageFragments.java +++ b/router/java/src/net/i2p/router/transport/udp/InboundMessageFragments.java @@ -110,8 +110,8 @@ public class InboundMessageFragments /*implements UDPTransport.PartialACKSource _context.statManager().addRateData("udp.ignoreRecentDuplicate", 1, 0); from.messageFullyReceived(messageId, -1); _ackSender.ackPeer(from); - if (_log.shouldLog(Log.WARN)) - _log.warn("Message received is a dup: " + mid + " dups: " + if (_log.shouldLog(Log.INFO)) + _log.info("Message received is a dup: " + mid + " dups: " + _recentlyCompletedMessages.getCurrentDuplicateCount() + " out of " + _recentlyCompletedMessages.getInsertedCount()); _context.messageHistory().droppedInboundMessage(mid, from.getRemotePeer(), "dup");