Skip to content

Commit

Permalink
Fix config length limitation. (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
weixiang1862 authored Oct 18, 2023
1 parent 6c4af4e commit 017bc20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Release Notes.
* Optimize spring-cloud-gateway 2.1.x, 3.x witness class.
* Support report MongoDB instance info in Mongodb 4.x plugin.
* To compatible upper and lower case Oracle TNS url parse.
* Fix config length limitation.

#### Documentation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private static void initNextLevel(Properties properties, Class<?> recentConfigTy
}
}
if (propertyValue.length() > lengthLimited) {
StringUtil.cut(propertyValue, lengthLimited);
propertyValue = StringUtil.cut(propertyValue, lengthLimited);
System.err.printf("The config value will be truncated , because the length max than %d : %s -> %s%n", lengthDefine.value(), configKey, propertyValue);
}
}
Expand Down

0 comments on commit 017bc20

Please sign in to comment.