From 3c7be7dfa276425a6e8890ce0a2d31bd769cb3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=A6=B9=E5=85=89?= Date: Thu, 21 Nov 2019 11:09:14 +0800 Subject: [PATCH] Bug fix when handling the end separator of the customized log directory in LogBase --- .../src/main/java/com/alibaba/csp/sentinel/log/LogBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java index 8eb0ead914..2de0bddd4f 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java @@ -95,7 +95,7 @@ private static void loadProperties() { 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()) {