Skip to content

Commit

Permalink
fix: 更改日志的提示等级为warn,error的日志等级不合理
Browse files Browse the repository at this point in the history
  • Loading branch information
15911075183ma committed Dec 1, 2023
1 parent e6c45ce commit e4d7cce
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public <T> T get(ConfigKey key) {
try {
return ((Config<T>) getConfig(key)).get();
} catch (Throwable e) {
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
return null;
}
}
Expand All @@ -90,7 +90,7 @@ private void updateBool(JSONObject config, ConfigKey.JsonKey jsonKey) {
conf.setValue(value);
}
} catch (Throwable e) {
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
}
}

Expand All @@ -103,7 +103,7 @@ private void updateInt(JSONObject config, ConfigKey.JsonKey jsonKey) {
conf.setValue(value);
}
} catch (Throwable e) {
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
}
}

Expand All @@ -118,7 +118,7 @@ private void updateString(JSONObject config, ConfigKey.JsonKey jsonKey) {
}
}
} catch (Throwable e) {
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
}
}

Expand All @@ -133,7 +133,7 @@ private void updateRequestDenyList(JSONObject config) {
conf.setValue(requestDenyList);
}
} catch (Throwable e) {
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
}
}
}

0 comments on commit e4d7cce

Please sign in to comment.