From a9cd4a97adb8407bcb9a9ff5eb19f5009c85ed2e Mon Sep 17 00:00:00 2001 From: H Vs Date: Fri, 8 Mar 2024 15:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TcpServer/Handler/RegisterHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NearCardAttendance.Service/TcpServer/Handler/RegisterHandler.cs b/NearCardAttendance.Service/TcpServer/Handler/RegisterHandler.cs index 84b0980..c2d56ff 100644 --- a/NearCardAttendance.Service/TcpServer/Handler/RegisterHandler.cs +++ b/NearCardAttendance.Service/TcpServer/Handler/RegisterHandler.cs @@ -90,7 +90,7 @@ namespace NearCardAttendance.Service.TcpServer.Handler // var channel = _managerTcpClients.FirstOrDefault(x => x.Key.Equals(imei)).Value; //await channel.CloseAsync(); await context.Channel.CloseAsync(); - _logger.LogInformation($"3分钟超时无数据,主动断链"); + _logger.LogInformation($"3分钟超时无数据,主动断链:{context.Channel}"); // 执行任务逻辑 }, #if DEBUG @@ -107,7 +107,7 @@ namespace NearCardAttendance.Service.TcpServer.Handler return context.Channel.EventLoop.Schedule(async () => { await context.Channel.CloseAsync(); - _logger.LogInformation($"3分钟超时无数据,主动断链"); + _logger.LogInformation($"3分钟超时无数据,主动断链:{context.Channel}"); // 执行任务逻辑 }, #if DEBUG