Log level tweaks

This commit is contained in:
zzz committed 2026-03-06 13:56:29 -05:00
1 parent f778c8f870
commit 3bc4a2d740
2 files changed
+8 -8

No files matched your search

@@ -452,8 +452,8 @@ class InboundEstablishState2 extends InboundEstablishState implements SSU2Payloa
} else if (VersionComparator.comp(ri.getVersion(), MIN_RELAY_VERSION) < 0) {
_introductionRequested = false;
String caps = ri.getCapabilities();
if (_log.shouldWarn())
_log.warn("Not offering to relay to router version " + ri.getVersion() + " caps " + caps + ": " + this);
if (_log.shouldDebug())
_log.debug("Not offering to relay to router version " + ri.getVersion() + " caps " + caps + ": " + this);
} else {
String caps = ri.getCapabilities();
// may be requesting relay for ipv4/6 if reachable on the other
@@ -464,8 +464,8 @@ class InboundEstablishState2 extends InboundEstablishState implements SSU2Payloa
// who will send the relay tag with ACK 0
} else {
_introductionRequested = false;
if (_log.shouldWarn())
_log.warn("Not offering to relay to router version " + ri.getVersion() + " caps " + caps + ": " + this);
if (_log.shouldDebug())
_log.debug("Not offering to relay to router version " + ri.getVersion() + " caps " + caps + ": " + this);
}
}
}
@@ -987,16 +987,16 @@ public class TunnelDispatcher implements Service {
if (cur.getExpiration() > until)
break;
if (cur.getProcessedMessagesCount() <= 0) {
if (_log.shouldInfo())
_log.info("Removing idle " + cur);
if (_log.shouldDebug())
_log.debug("Removing idle " + cur);
iter.remove();
remove(cur);
_allocatedBW.addAndGet(0 - cur.getAllocatedBW());
exp++;
}
}
if (exp > 0 && _log.shouldWarn())
_log.warn("Removed " + exp + " idle tunnels");
if (exp > 0 && _log.shouldInfo())
_log.info("Removed " + exp + " idle tunnels");
getTiming().setStartAfter(nextTime);
getContext().jobQueue().addJob(LeaveTunnel.this);