Skip to content

Commit

Permalink
Fix hasPreparedInternalModule is always false. (apache#11535)
Browse files Browse the repository at this point in the history
  • Loading branch information
KamToHung committed Feb 12, 2023
1 parent 18d899b commit 8725323
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,11 @@ public void prepareInternalModule() {
// wait for internal module startup
try {
future.get(5, TimeUnit.SECONDS);
hasPreparedInternalModule = true;
} catch (Exception e) {
logger.warn(CONFIG_FAILED_START_MODEL, "", "", "wait for internal module startup failed: " + e.getMessage(), e);
}
}
hasPreparedInternalModule = true;
}
}

Expand Down Expand Up @@ -773,7 +773,7 @@ private DynamicConfiguration prepareEnvironment(ConfigCenterConfig configCenter)
dynamicConfiguration = getDynamicConfiguration(configCenter.toUrl());
} catch (Exception e) {
if (!configCenter.isCheck()) {
logger.warn(CONFIG_FAILED_INIT_CONFIG_CENTER, "", "","The configuration center failed to initialize", e);
logger.warn(CONFIG_FAILED_INIT_CONFIG_CENTER, "", "", "The configuration center failed to initialize", e);
configCenter.setInitialized(false);
return null;
} else {
Expand Down

0 comments on commit 8725323

Please sign in to comment.