From 237f278479f6011f8f6c9343a5f45a35165c348a Mon Sep 17 00:00:00 2001 From: jrandom Date: Tue, 27 Apr 2004 08:31:56 +0000 Subject: [PATCH] we only need to reread it if its been updated, dimwit. --- core/java/src/net/i2p/util/LogManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/java/src/net/i2p/util/LogManager.java b/core/java/src/net/i2p/util/LogManager.java index e9b7a2d18..4e94d63e4 100644 --- a/core/java/src/net/i2p/util/LogManager.java +++ b/core/java/src/net/i2p/util/LogManager.java @@ -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 {