mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-01 23:09:01 +00:00
Polish formatting
This commit is contained in:
+2
-2
@@ -168,13 +168,13 @@ public class LoggingApplicationListener implements SmartApplicationListener {
|
||||
// Logback won't read backslashes so add a clean path for it to use
|
||||
if (!StringUtils.hasLength(System.getProperty("LOG_TEMP"))) {
|
||||
String path = System.getProperty("java.io.tmpdir");
|
||||
if (path!=null) {
|
||||
if (path != null) {
|
||||
path = StringUtils.cleanPath(path);
|
||||
if (path.endsWith("/")) {
|
||||
path = path.substring(0, path.length() - 1);
|
||||
}
|
||||
System.setProperty("LOG_TEMP", path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user