Browse Source

Fix the incorrect logic of handling the end separator of the log directory in LogBase (#1172)

master
于玉桔 Eric Zhao 5 years ago
parent
commit
24f8d75601
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java

+ 1
- 1
sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java View File

@@ -95,7 +95,7 @@ public class LogBase {


logBaseDir = properties.getProperty(LOG_DIR) == null ? logBaseDir : properties.getProperty(LOG_DIR);
addSeparator(logBaseDir);
logBaseDir = addSeparator(logBaseDir);
File dir = new File(logBaseDir);
if (!dir.exists()) {
if (!dir.mkdirs()) {


Loading…
Cancel
Save