Commit 14a0e559 authored by duanruiming's avatar duanruiming

[update] 打印测试日志

parent 03cca759
...@@ -145,6 +145,7 @@ public class CommonEventWarnTask { ...@@ -145,6 +145,7 @@ public class CommonEventWarnTask {
private static void buildSignalWarnData(List<CommonEventAlarmOutVo> results, String formatNow, String signalId, Integer currentStatus, Integer currentFaultType, String coordinate, String crossName, TDeviceStatusInfo tDeviceStatusInfo1) { private static void buildSignalWarnData(List<CommonEventAlarmOutVo> results, String formatNow, String signalId, Integer currentStatus, Integer currentFaultType, String coordinate, String crossName, TDeviceStatusInfo tDeviceStatusInfo1) {
try { try {
if (SignalStatusTask.isExucuteUpdate(currentStatus, currentFaultType, tDeviceStatusInfo1)) { if (SignalStatusTask.isExucuteUpdate(currentStatus, currentFaultType, tDeviceStatusInfo1)) {
log.error("测试日志,执行信号机状态修改成功");
CommonEventAlarmOutVo commonEventAlarmOutVo = new CommonEventAlarmOutVo(); CommonEventAlarmOutVo commonEventAlarmOutVo = new CommonEventAlarmOutVo();
commonEventAlarmOutVo.setEventType(3); commonEventAlarmOutVo.setEventType(3);
commonEventAlarmOutVo.setEventId(signalId); commonEventAlarmOutVo.setEventId(signalId);
...@@ -162,6 +163,7 @@ public class CommonEventWarnTask { ...@@ -162,6 +163,7 @@ public class CommonEventWarnTask {
commonEventAlarmOutVo.setStartTime(formatNow); commonEventAlarmOutVo.setStartTime(formatNow);
commonEventAlarmOutVo.setCoordinate(coordinate); commonEventAlarmOutVo.setCoordinate(coordinate);
results.add(commonEventAlarmOutVo); results.add(commonEventAlarmOutVo);
log.error("测试日志,返回结果result:{}", results);
} }
} catch (Exception e) { } catch (Exception e) {
log.error("构建信号机告警数据失败", e); log.error("构建信号机告警数据失败", e);
......
...@@ -176,6 +176,7 @@ public class WebSocketServer { ...@@ -176,6 +176,7 @@ public class WebSocketServer {
Set<WebSocketServer> socketSets = webSocketMap.get(topic); Set<WebSocketServer> socketSets = webSocketMap.get(topic);
for (WebSocketServer socketSet : socketSets) { for (WebSocketServer socketSet : socketSets) {
socketSet.sendMessage(message); socketSet.sendMessage(message);
log.error("测试日志,主题:{}, 发送消息异常, 异常信息:{}", topic, message);
} }
} catch (Exception e) { } catch (Exception e) {
log.error("主题:{}, 发送消息异常, 异常信息:{}", topic, e); log.error("主题:{}, 发送消息异常, 异常信息:{}", topic, e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment