掉电警告触发日志收集

This commit is contained in:
fengyarnom 2024-11-28 15:29:52 +08:00
parent 3f3323df3d
commit 6d91cdee25

View File

@ -258,8 +258,8 @@ public class WarningServiceImpl implements WarningService {
}
public void generate_warning_logs(String device_id,int warning_type,String warning_type_name){
// 连续无固定解
if (warning_type == WarningCfg.TYPE_NO_FIXED_RESULT) {
// 连续无固定解 掉电 警告
if (warning_type == WarningCfg.TYPE_NO_FIXED_RESULT || warning_type == WarningCfg.TYPE_LOW_VOLTAGE) {
WarningLogExecutor warningLogExecutor = new WarningLogExecutor(logDirectory);
warningLogExecutor.generateWarningLogs(device_id, warning_type_name);
}