Skip to content

Commit

Permalink
feat: 调整日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyueyi committed Aug 15, 2023
1 parent 9ba2bb0 commit 8489f0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ public void bind(Bindable bindable) {

@EventListener(classes = ConfigRefreshEvent.class)
public void reloadConfig() {
log.info("开始加载db全局配置! 当前配置: {}", JsonUtil.toStr(cache));
String before = JsonUtil.toStr(cache);
boolean toRefresh = loadAllConfigFromDb();
if (toRefresh) {
refreshConfig();
log.info("配置刷新! 旧:{}, 新:{}", before, JsonUtil.toStr(cache));
}
log.info("db配置变更={} 新的配置: {}", toRefresh, JsonUtil.toStr(cache));
}

/**
Expand Down

0 comments on commit 8489f0d

Please sign in to comment.