forked from I2P_Developers/i2p.i2p
log tweaks
This commit is contained in:
@@ -330,8 +330,8 @@ public class SnarkManager implements CompleteListener, ClientApp {
|
||||
* Runs inline.
|
||||
*/
|
||||
public void stop() {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Snark stop() begin", new Exception("I did it"));
|
||||
if (_log.shouldDebug())
|
||||
_log.debug("Snark stop() begin", new Exception("I did it"));
|
||||
if (_umgr != null && _uhandler != null) {
|
||||
//_uhandler.shutdown();
|
||||
_umgr.unregister(_uhandler, UpdateType.ROUTER_SIGNED, UpdateMethod.TORRENT);
|
||||
|
@@ -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