allow the timestamper to be started up while disabled
This commit is contained in:
@ -34,11 +34,12 @@ public class Timestamper implements Runnable {
|
|||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Starting timestamper pointing at " + _targetURL);
|
_log.info("Starting timestamper pointing at " + _targetURL);
|
||||||
synchronized (Timestamper.class) {
|
synchronized (Timestamper.class) {
|
||||||
String enabled = System.getProperty("timestamper.enabled");
|
String enabled = System.getProperty("timestamper.started");
|
||||||
if (enabled != null) {
|
if (enabled != null) {
|
||||||
_log.warn("Timestamper already running");
|
_log.warn("Timestamper already running");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
System.setProperty("timestamper.started", "true");
|
||||||
System.setProperty("timestamper.enabled", "true");
|
System.setProperty("timestamper.enabled", "true");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user