Skip to content

Commit d52028c

Browse files
committed
fix:add warn log
1 parent 06339a6 commit d52028c

File tree

1 file changed

+2
-1
lines changed
  • apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/component/config

1 file changed

+2
-1
lines changed

apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/component/config/PortalConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,11 @@ public List<String> getUserPasswordNotAllowList() {
318318
return Arrays.asList(value);
319319
}
320320

321-
int checkInt(int value, int min, int max, int defaultValue) {
321+
private int checkInt(int value, int min, int max, int defaultValue) {
322322
if (value >= min && value <= max) {
323323
return value;
324324
}
325+
logger.warn("Configuration value '{}' is out of bounds [{} - {}]. Using default value '{}'.", value, min, max, defaultValue);
325326
return defaultValue;
326327
}
327328
}

0 commit comments

Comments
 (0)