we only need to reread it if its been updated, dimwit.

This commit is contained in:
jrandom
2004-04-27 08:31:56 +00:00
committed by zzz
parent e766a00a12
commit 237f278479

View File

@ -199,11 +199,13 @@ public class LogManager {
private void loadConfig() {
Properties p = new Properties();
File cfgFile = new File(_location);
if ((_configLastRead > 0) && (_configLastRead > cfgFile.lastModified())) {
_log.debug("Short circuiting config read");
if ((_configLastRead > 0) && (_configLastRead >= cfgFile.lastModified())) {
if (_log.shouldLog(Log.DEBUG))
_log.debug("Short circuiting config read");
return;
} else {
_log.debug("Loading config from " + _location);
if (_log.shouldLog(Log.DEBUG))
_log.debug("Loading config from " + _location);
}
FileInputStream fis = null;
try {