Skip to content

Commit 017bc20

Browse files
authored
Fix config length limitation. (#623)
1 parent 6c4af4e commit 017bc20

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Release Notes.
1414
* Optimize spring-cloud-gateway 2.1.x, 3.x witness class.
1515
* Support report MongoDB instance info in Mongodb 4.x plugin.
1616
* To compatible upper and lower case Oracle TNS url parse.
17+
* Fix config length limitation.
1718

1819
#### Documentation
1920

apm-commons/apm-util/src/main/java/org/apache/skywalking/apm/util/ConfigInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private static void initNextLevel(Properties properties, Class<?> recentConfigTy
9696
}
9797
}
9898
if (propertyValue.length() > lengthLimited) {
99-
StringUtil.cut(propertyValue, lengthLimited);
99+
propertyValue = StringUtil.cut(propertyValue, lengthLimited);
100100
System.err.printf("The config value will be truncated , because the length max than %d : %s -> %s%n", lengthDefine.value(), configKey, propertyValue);
101101
}
102102
}

0 commit comments

Comments
 (0)