配置错误返回修改
This commit is contained in:
parent
9e45c11b5d
commit
c6c63327e6
@ -191,7 +191,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
|
||||
resultMap = parseFile(fileStream, fdrFormatVo.getTimeFormat(), fdrFormatVo.getDelimiter(), fdrFormatVo.getValidStartLine());
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("文件解析异常:{}",e);
|
||||
throw new ServiceException("配置解析异常");
|
||||
}
|
||||
return resultMap;
|
||||
|
@ -86,7 +86,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
|
||||
resultMap = parseFile(fileStream, fdrFormatVo.getTimeFormat(), fdrFormatVo.getDelimiter(), fdrFormatVo.getValidStartLine());
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("文件解析异常:{}",e);
|
||||
throw new ServiceException("配置解析异常");
|
||||
}
|
||||
return resultMap;
|
||||
|
Loading…
Reference in New Issue
Block a user