Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
14a0e559
Commit
14a0e559
authored
May 06, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 打印测试日志
parent
03cca759
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
CommonEventWarnTask.java
...src/main/java/net/wanji/web/task/CommonEventWarnTask.java
+2
-0
WebSocketServer.java
...rc/main/java/net/wanji/web/websocket/WebSocketServer.java
+1
-0
No files found.
signal-control-service/src/main/java/net/wanji/web/task/CommonEventWarnTask.java
View file @
14a0e559
...
...
@@ -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
)
{
try
{
if
(
SignalStatusTask
.
isExucuteUpdate
(
currentStatus
,
currentFaultType
,
tDeviceStatusInfo1
))
{
log
.
error
(
"测试日志,执行信号机状态修改成功"
);
CommonEventAlarmOutVo
commonEventAlarmOutVo
=
new
CommonEventAlarmOutVo
();
commonEventAlarmOutVo
.
setEventType
(
3
);
commonEventAlarmOutVo
.
setEventId
(
signalId
);
...
...
@@ -162,6 +163,7 @@ public class CommonEventWarnTask {
commonEventAlarmOutVo
.
setStartTime
(
formatNow
);
commonEventAlarmOutVo
.
setCoordinate
(
coordinate
);
results
.
add
(
commonEventAlarmOutVo
);
log
.
error
(
"测试日志,返回结果result:{}"
,
results
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"构建信号机告警数据失败"
,
e
);
...
...
signal-control-service/src/main/java/net/wanji/web/websocket/WebSocketServer.java
View file @
14a0e559
...
...
@@ -176,6 +176,7 @@ public class WebSocketServer {
Set
<
WebSocketServer
>
socketSets
=
webSocketMap
.
get
(
topic
);
for
(
WebSocketServer
socketSet
:
socketSets
)
{
socketSet
.
sendMessage
(
message
);
log
.
error
(
"测试日志,主题:{}, 发送消息异常, 异常信息:{}"
,
topic
,
message
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"主题:{}, 发送消息异常, 异常信息:{}"
,
topic
,
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment