feat:log print
This commit is contained in:
parent
0b0856f687
commit
0a00916d19
|
@ -170,8 +170,8 @@ public class AlarmAnalysisLogServiceImpl extends ServiceImpl<AlarmAnalysisLogMap
|
|||
return result;
|
||||
}
|
||||
Map<String, Long> stationGroup = analysisLogs.stream()
|
||||
.filter(log -> StrUtil.isNotBlank(log.getStationId()))
|
||||
.map(AlarmAnalysisLog::getStationId)
|
||||
.filter(StrUtil::isNotBlank)
|
||||
.collect(Collectors.groupingBy(stationId -> stationId, Collectors.counting()));
|
||||
Set<String> stationIds = stationGroup.keySet();
|
||||
Map<String, String> stationCodesMap = systemClient.stationCodesMap(stationIds);
|
||||
|
|
|
@ -129,6 +129,7 @@ public class DatabaseJob extends Monitor {
|
|||
log.error("Database预警规则: {}解析失败,失败原因: {}", operator, e.getMessage());
|
||||
}catch (Exception e){
|
||||
log.error("Database监控异常: {}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
destroy();
|
||||
|
|
|
@ -111,6 +111,7 @@ public class EmailJob extends Monitor{
|
|||
log.error("Email预警规则: {}解析失败,失败原因: {}", operator, e.getMessage());
|
||||
}catch (Exception e){
|
||||
log.error("Email监控异常: {}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
destroy();
|
||||
|
|
|
@ -130,6 +130,7 @@ public class ServerJob extends Monitor{
|
|||
log.error("Server预警规则: {}解析失败,失败原因: {}", operator, e.getMessage());
|
||||
}catch (Exception e){
|
||||
log.error("Server监控异常: {}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
destroy();
|
||||
|
|
|
@ -124,6 +124,7 @@ public class TableSpaceJob extends Monitor {
|
|||
log.error("Database-TableSpace预警规则: {}解析失败,失败原因: {}", operator, e.getMessage());
|
||||
}catch (Exception e){
|
||||
log.error("Database-TableSpace监控异常: {}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
destroy();
|
||||
|
|
Loading…
Reference in New Issue
Block a user