forked from I2P_Developers/i2p.i2p
log tweaks
This commit is contained in:
@@ -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