Skip to content

Commit 878962e

Browse files
committed
Fix log4j-spring-cloud-config-client
1 parent 259e303 commit 878962e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,12 @@ private void monitorSource(final Reconfigurable reconfigurable, final Configurat
366366
@Override
367367
public void start() {
368368
// Preserve the prior behavior of initializing during start if not initialized.
369-
if (getState().equals(State.INITIALIZING)) {
369+
if (getState() == State.INITIALIZING) {
370370
initialize();
371371
}
372372
LOGGER.info("Starting configuration {}...", this);
373373
this.setStarting();
374-
if (watchManager.getIntervalSeconds() > 0) {
374+
if (watchManager.getIntervalSeconds() >= 0) {
375375
LOGGER.info(
376376
"Start watching for changes to {} every {} seconds",
377377
getConfigurationSource(),

0 commit comments

Comments
 (0)