Browse Source

调整日志

develop
H Vs 8 months ago
parent
commit
a9cd4a97ad
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      NearCardAttendance.Service/TcpServer/Handler/RegisterHandler.cs

+ 2
- 2
NearCardAttendance.Service/TcpServer/Handler/RegisterHandler.cs View File

@@ -90,7 +90,7 @@ namespace NearCardAttendance.Service.TcpServer.Handler
// var channel = _managerTcpClients.FirstOrDefault(x => x.Key.Equals(imei)).Value; // var channel = _managerTcpClients.FirstOrDefault(x => x.Key.Equals(imei)).Value;
//await channel.CloseAsync(); //await channel.CloseAsync();
await context.Channel.CloseAsync(); await context.Channel.CloseAsync();
_logger.LogInformation($"3分钟超时无数据,主动断链");
_logger.LogInformation($"3分钟超时无数据,主动断链:{context.Channel}");
// 执行任务逻辑 // 执行任务逻辑
}, },
#if DEBUG #if DEBUG
@@ -107,7 +107,7 @@ namespace NearCardAttendance.Service.TcpServer.Handler
return context.Channel.EventLoop.Schedule(async () => return context.Channel.EventLoop.Schedule(async () =>
{ {
await context.Channel.CloseAsync(); await context.Channel.CloseAsync();
_logger.LogInformation($"3分钟超时无数据,主动断链");
_logger.LogInformation($"3分钟超时无数据,主动断链:{context.Channel}");
// 执行任务逻辑 // 执行任务逻辑
}, },
#if DEBUG #if DEBUG


Loading…
Cancel
Save