From abcdcf2e8c60752e0ca03816ee337d197f2f147d Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 16 Oct 2014 20:38:12 +0000 Subject: [PATCH] log tweaks (SSU) --- .../transport/udp/EstablishmentManager.java | 16 ++++++++-------- .../transport/udp/OutboundEstablishState.java | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/router/java/src/net/i2p/router/transport/udp/EstablishmentManager.java b/router/java/src/net/i2p/router/transport/udp/EstablishmentManager.java index 96c4282c8..abc08f3af 100644 --- a/router/java/src/net/i2p/router/transport/udp/EstablishmentManager.java +++ b/router/java/src/net/i2p/router/transport/udp/EstablishmentManager.java @@ -957,8 +957,8 @@ class EstablishmentManager { if (!oldId.equals(newId)) { _outboundStates.remove(oldId); _outboundStates.put(newId, state); - if (_log.shouldLog(Log.WARN)) - _log.warn("RR replaced " + oldId + " with " + newId + ", claimed address was " + claimed); + if (_log.shouldLog(Log.INFO)) + _log.info("RR replaced " + oldId + " with " + newId + ", claimed address was " + claimed); } // if (claimed != null) @@ -979,17 +979,17 @@ class EstablishmentManager { if (state != null) { boolean sendNow = state.receiveHolePunch(); if (sendNow) { - if (_log.shouldLog(Log.WARN)) - _log.warn("Hole punch from " + state + ", sending SessionRequest now"); + if (_log.shouldLog(Log.INFO)) + _log.info("Hole punch from " + state + ", sending SessionRequest now"); notifyActivity(); } else { - if (_log.shouldLog(Log.WARN)) - _log.warn("Hole punch from " + state + ", already sent SessionRequest"); + if (_log.shouldLog(Log.INFO)) + _log.info("Hole punch from " + state + ", already sent SessionRequest"); } } else { // HolePunch received before RelayResponse, and we didn't know the IP/port, or it changed - if (_log.shouldLog(Log.WARN)) - _log.warn("No state found for hole punch from " + from + " port " + fromPort); + if (_log.shouldLog(Log.INFO)) + _log.info("No state found for hole punch from " + from + " port " + fromPort); } } diff --git a/router/java/src/net/i2p/router/transport/udp/OutboundEstablishState.java b/router/java/src/net/i2p/router/transport/udp/OutboundEstablishState.java index 9f519f5ae..897cd1de2 100644 --- a/router/java/src/net/i2p/router/transport/udp/OutboundEstablishState.java +++ b/router/java/src/net/i2p/router/transport/udp/OutboundEstablishState.java @@ -618,8 +618,8 @@ class OutboundEstablishState { if (_requestSentCount > 0) return false; long now = _context.clock().now(); - if (_log.shouldLog(Log.WARN)) - _log.warn(toString() + " accelerating SessionRequest by " + (_nextSend - now) + " ms"); + if (_log.shouldLog(Log.INFO)) + _log.info(toString() + " accelerating SessionRequest by " + (_nextSend - now) + " ms"); _nextSend = now; return true; }