* I2CP: Change a log error to a warning (ticket #353)

This commit is contained in:
zzz
2010-12-11 14:24:27 +00:00
parent 2ca8fc6e62
commit 0be2ca8beb
2 changed files with 9 additions and 2 deletions

View File

@ -38,8 +38,13 @@ public class I2PSessionDemultiplexer implements I2PSessionMuxedListener {
l.messageAvailable(session, msgId, size, proto, fromport, toport); l.messageAvailable(session, msgId, size, proto, fromport, toport);
else { else {
// no listener, throw it out // no listener, throw it out
_log.error("No listener found for proto: " + proto + " port: " + toport + "msg id: " + msgId + if (_listeners.isEmpty()) {
if (_log.shouldLog(Log.WARN))
_log.warn("No listeners for incoming message");
} else {
_log.error("No listener found for proto: " + proto + " port: " + toport + " msg id: " + msgId +
" from pool of " + _listeners.size() + " listeners"); " from pool of " + _listeners.size() + " listeners");
}
try { try {
session.receiveMessage(msgId); session.receiveMessage(msgId);
} catch (I2PSessionException ise) {} } catch (I2PSessionException ise) {}

View File

@ -1,5 +1,6 @@
2010-12-11 zzz 2010-12-11 zzz
* Build: Fix 'ant distclean poupdate' again * Build: Fix 'ant distclean poupdate' again
* I2CP: Change a log error to a warning (ticket #353)
* i2psnark: * i2psnark:
- Restore text (ticket #273) - Restore text (ticket #273)
- Fix several HTML errors (ticket #273) - Fix several HTML errors (ticket #273)
@ -22,6 +23,7 @@
2010-12-10 Mathiasdm 2010-12-10 Mathiasdm
* I2PTunnel: Fixed up security fix. * I2PTunnel: Fixed up security fix.
2010-12-07 Mathiasdm 2010-12-07 Mathiasdm
* I2PTunnel: Security fix: change server reply * I2PTunnel: Security fix: change server reply
to return 'I2PServer' instead of the actual servername. to return 'I2PServer' instead of the actual servername.