Skip to content

Commit 24f8d75

Browse files
zhaoyuguangsczyh30
authored andcommitted
Fix the incorrect logic of handling the end separator of the log directory in LogBase (#1172)
1 parent 72a58f7 commit 24f8d75

File tree

1 file changed

+1
-1
lines changed
  • sentinel-core/src/main/java/com/alibaba/csp/sentinel/log

1 file changed

+1
-1
lines changed

sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static void loadProperties() {
9595

9696

9797
logBaseDir = properties.getProperty(LOG_DIR) == null ? logBaseDir : properties.getProperty(LOG_DIR);
98-
addSeparator(logBaseDir);
98+
logBaseDir = addSeparator(logBaseDir);
9999
File dir = new File(logBaseDir);
100100
if (!dir.exists()) {
101101
if (!dir.mkdirs()) {

0 commit comments

Comments
 (0)