From 4a8534e4e62c4808423860fa00cc40b3b344c800 Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Sat, 2 Oct 2021 13:40:23 -0400 Subject: [PATCH] SSU: Downgrade fragmentation log errors to warn reported by drzed --- .../net/i2p/router/transport/udp/InboundMessageState.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/router/java/src/net/i2p/router/transport/udp/InboundMessageState.java b/router/java/src/net/i2p/router/transport/udp/InboundMessageState.java index 15a255aad0..4eb80ff54c 100644 --- a/router/java/src/net/i2p/router/transport/udp/InboundMessageState.java +++ b/router/java/src/net/i2p/router/transport/udp/InboundMessageState.java @@ -123,16 +123,16 @@ class InboundMessageState implements CDQEntry { if (isLast) { // don't allow _lastFragment to be set twice if (_lastFragment >= 0) { - if (_log.shouldLog(Log.ERROR)) - _log.error("Multiple last fragments for message " + _messageId + " from " + _from); + if (_log.shouldWarn()) + _log.warn("Multiple last fragments for message " + _messageId + " from " + _from); return false; } // TODO - check for non-last fragments after this one? _lastFragment = fragmentNum; } else if (_lastFragment >= 0 && fragmentNum >= _lastFragment) { // don't allow non-last after last - if (_log.shouldLog(Log.ERROR)) - _log.error("Non-last fragment " + fragmentNum + " when last is " + _lastFragment + " for message " + _messageId + " from " + _from); + if (_log.shouldWarn()) + _log.warn("Non-last fragment " + fragmentNum + " when last is " + _lastFragment + " for message " + _messageId + " from " + _from); return false; } if (_log.shouldLog(Log.DEBUG)) -- GitLab