mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 15:12:56 +00:00
cleanup and logging
This commit is contained in:
1 parent
024a5a1ad4
commit
b1a5f61ba2
2 files changed
+1
-3
No files matched your search
@@ -125,8 +125,6 @@ public class FragmentHandler {
|
||||
while (preprocessed[offset+paddingEnd] != (byte)0x00) {
|
||||
paddingEnd++;
|
||||
if (offset+paddingEnd >= length) {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Corrupt tunnel message padding");
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("cannot verify, going past the end [off="
|
||||
+ offset + " len=" + length + " paddingEnd="
|
||||
|
||||
@@ -375,7 +375,7 @@ public class TunnelDispatcher implements Service {
|
||||
_context.statManager().addRateData("tunnel.dispatchEndpoint", 1, 0);
|
||||
} else {
|
||||
_context.messageHistory().droppedTunnelDataMessageUnknown(msg.getUniqueId(), msg.getTunnelId());
|
||||
int level = (_context.router().getUptime() > 10*60*1000 ? Log.ERROR : Log.WARN);
|
||||
int level = (_context.router().getUptime() > 10*60*1000 ? Log.WARN : Log.DEBUG);
|
||||
if (_log.shouldLog(level))
|
||||
_log.log(level, "no matching participant/endpoint for id=" + msg.getTunnelId()
|
||||
+ " expiring in " + DataHelper.formatDuration(msg.getMessageExpiration()-_context.clock().now())
|
||||
|
||||
Reference in new issue
Block a user