mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 08:42:58 +00:00
log tweaks
This commit is contained in:
1 parent
665f58d62a
commit
ceac733b66
3 files changed
+10
-4
No files matched your search
@@ -808,6 +808,9 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
else if (_state == State.EXPL_TUNNELS_READY)
|
||||
changeState(State.RUNNING);
|
||||
}
|
||||
// for debugging
|
||||
if (_log.shouldWarn())
|
||||
_context.logManager().flush();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -822,6 +825,9 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
else if (_state == State.NETDB_READY)
|
||||
changeState(State.RUNNING);
|
||||
}
|
||||
// for debugging
|
||||
if (_log.shouldWarn())
|
||||
_context.logManager().flush();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -44,8 +44,8 @@ public class ReadConfigJob extends JobImpl {
|
||||
getContext().router().readConfig();
|
||||
_lastRead = getContext().clock().now();
|
||||
Log log = getContext().logManager().getLog(ReadConfigJob.class);
|
||||
if (log.shouldLog(Log.WARN))
|
||||
log.warn("Reloaded " + configFile);
|
||||
if (log.shouldDebug())
|
||||
log.debug("Reloaded " + configFile);
|
||||
}
|
||||
requeue(DELAY);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user