瀏覽代碼

Merge pull request #372 from jenscski/LogFix

Small fix for inconsistent client name in log
release/3.x.x
Christian 6 年之前
committed by GitHub
父節點
當前提交
b0da4b2b2d
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      Source/MQTTnet/Server/MqttClientKeepAliveMonitor.cs

+ 4
- 4
Source/MQTTnet/Server/MqttClientKeepAliveMonitor.cs 查看文件

@@ -14,9 +14,9 @@ namespace MQTTnet.Server

private readonly IMqttClientSession _clientSession;
private readonly IMqttNetChildLogger _logger;
private bool _isPaused;
public MqttClientKeepAliveMonitor(IMqttClientSession clientSession, IMqttNetChildLogger logger)
{
if (logger == null) throw new ArgumentNullException(nameof(logger));
@@ -76,7 +76,7 @@ namespace MQTTnet.Server
{
_logger.Warning(null, "Client '{0}': Did not receive any packet or keep alive signal.", _clientSession.ClientId);
_clientSession.Stop(MqttClientDisconnectType.NotClean);
return;
}

@@ -96,7 +96,7 @@ namespace MQTTnet.Server
}
finally
{
_logger.Verbose("Client {0}: Stopped checking keep alive timeout.", _clientSession.ClientId);
_logger.Verbose("Client '{0}': Stopped checking keep alive timeout.", _clientSession.ClientId);
}
}
}


Loading…
取消
儲存