Skip to content

Commit 9c40484

Browse files
authored
Merge pull request #612 from 15911075183ma/fix-log-level
fix: 更改日志的提示等级为warn,error的日志等级不合理
2 parents 00a270f + e4d7cce commit 9c40484

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dongtai-common/src/main/java/io/dongtai/iast/common/config/ConfigBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public <T> T get(ConfigKey key) {
7676
try {
7777
return ((Config<T>) getConfig(key)).get();
7878
} catch (Throwable e) {
79-
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
79+
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
8080
return null;
8181
}
8282
}
@@ -90,7 +90,7 @@ private void updateBool(JSONObject config, ConfigKey.JsonKey jsonKey) {
9090
conf.setValue(value);
9191
}
9292
} catch (Throwable e) {
93-
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
93+
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
9494
}
9595
}
9696

@@ -103,7 +103,7 @@ private void updateInt(JSONObject config, ConfigKey.JsonKey jsonKey) {
103103
conf.setValue(value);
104104
}
105105
} catch (Throwable e) {
106-
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
106+
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
107107
}
108108
}
109109

@@ -118,7 +118,7 @@ private void updateString(JSONObject config, ConfigKey.JsonKey jsonKey) {
118118
}
119119
}
120120
} catch (Throwable e) {
121-
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
121+
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
122122
}
123123
}
124124

@@ -133,7 +133,7 @@ private void updateRequestDenyList(JSONObject config) {
133133
conf.setValue(requestDenyList);
134134
}
135135
} catch (Throwable e) {
136-
DongTaiLog.error(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
136+
DongTaiLog.warn(ErrorCode.UTIL_CONFIG_LOAD_FAILED,e.getMessage());
137137
}
138138
}
139139
}

0 commit comments

Comments
 (0)