commit
f5443abb33
|
@ -24,7 +24,7 @@ public class LogServiceImpl implements ILogService {
|
||||||
@Override
|
@Override
|
||||||
public List<LogFileInfo> queryList(String query, String startTime, String endTime) {
|
public List<LogFileInfo> queryList(String query, String startTime, String endTime) {
|
||||||
File logFile = getLogDir();
|
File logFile = getLogDir();
|
||||||
if (logFile == null && !logFile.exists()) {
|
if (logFile == null || !logFile.exists()) {
|
||||||
throw new ControllerException(ErrorCode.ERROR100.getCode(), "获取日志文件目录失败");
|
throw new ControllerException(ErrorCode.ERROR100.getCode(), "获取日志文件目录失败");
|
||||||
}
|
}
|
||||||
File[] files = logFile.listFiles();
|
File[] files = logFile.listFiles();
|
||||||
|
|
Loading…
Reference in New Issue