Skip to content

Commit

Permalink
Merge pull request HXSecurity#612 from 15911075183ma/fix-log-level
Browse files Browse the repository at this point in the history
fix: 更改日志的提示等级为warn,error的日志等级不合理
  • Loading branch information
15911075183ma authored Dec 1, 2023
2 parents 00a270f + e4d7cce commit 9c40484
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 9c40484

Please sign in to comment.