Shamrock: 输出心跳日志

This commit is contained in:
WhiteChi 2023-12-19 21:07:28 +08:00
parent 34eccda233
commit 3f9613c43c
2 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ internal abstract class WebSocketClientServlet(
return@timer
}
val runtime = AppRuntimeFetcher.appRuntime
LogCenter.log("WebSocketClient心跳: ${app.longAccountUin}", Level.DEBUG)
send(
GlobalJson.encodeToString(
PushMetaEvent(

View File

@ -61,6 +61,7 @@ internal abstract class WebSocketTransmitServlet(
timer("heartbeat", true, 0, heartbeatInterval) {
val runtime = AppRuntimeFetcher.appRuntime
val curUin = runtime.currentAccountUin
LogCenter.log("WebSocket心跳: $curUin", Level.DEBUG)
broadcastAnyEvent(
PushMetaEvent(
time = System.currentTimeMillis() / 1000,