Garlic: Reduce log level on misrouted message

This commit is contained in:
zzz
2020-10-21 20:24:12 +00:00
parent 49565a99f9
commit 6a6064d614

View File

@ -77,9 +77,10 @@ public class HandleGarlicMessageJob extends JobImpl implements GarlicMessageRece
getContext().inNetMessagePool().add(data, null, null); getContext().inNetMessagePool().add(data, null, null);
return; return;
case DeliveryInstructions.DELIVERY_MODE_DESTINATION: case DeliveryInstructions.DELIVERY_MODE_DESTINATION:
if (_log.shouldLog(Log.ERROR)) // i2pd bug with DLM to ratchet router
_log.error("this message didn't come down a tunnel, not forwarding to a destination: " if (_log.shouldWarn())
+ instructions + " - " + data); _log.warn("this message didn't come down a tunnel, not forwarding to a destination:\n"
+ instructions + '\n' + data);
return; return;
case DeliveryInstructions.DELIVERY_MODE_ROUTER: case DeliveryInstructions.DELIVERY_MODE_ROUTER:
if (getContext().routerHash().equals(instructions.getRouter())) { if (getContext().routerHash().equals(instructions.getRouter())) {