cleanup and logging
This commit is contained in:
@ -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