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