|
|
@ -151,11 +151,12 @@ public class LoggerRequestProcessor implements NettyRequestProcessor { |
|
|
|
if (StringUtils.isBlank(dsHome)) { |
|
|
|
if (StringUtils.isBlank(dsHome)) { |
|
|
|
dsHome = System.getProperty("user.dir"); |
|
|
|
dsHome = System.getProperty("user.dir"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (path.startsWith(dsHome) && !path.contains("../") && path.endsWith(".log")) { |
|
|
|
if (StringUtils.isBlank(path)) { |
|
|
|
return true; |
|
|
|
logger.warn("path is null"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return path.startsWith(dsHome) && !path.contains("../") && path.endsWith(".log"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ExecutorService getExecutor() { |
|
|
|
public ExecutorService getExecutor() { |
|
|
|