we only need to reread it if its been updated, dimwit.
This commit is contained in:
@ -199,11 +199,13 @@ public class LogManager {
|
|||||||
private void loadConfig() {
|
private void loadConfig() {
|
||||||
Properties p = new Properties();
|
Properties p = new Properties();
|
||||||
File cfgFile = new File(_location);
|
File cfgFile = new File(_location);
|
||||||
if ((_configLastRead > 0) && (_configLastRead > cfgFile.lastModified())) {
|
if ((_configLastRead > 0) && (_configLastRead >= cfgFile.lastModified())) {
|
||||||
_log.debug("Short circuiting config read");
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
|
_log.debug("Short circuiting config read");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
_log.debug("Loading config from " + _location);
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
|
_log.debug("Loading config from " + _location);
|
||||||
}
|
}
|
||||||
FileInputStream fis = null;
|
FileInputStream fis = null;
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user