Align different formats of log messages.

This commit is contained in:
Christian
2020-11-16 20:47:44 +01:00
parent f9c3014e52
commit a93f44217b
14 changed files with 35 additions and 34 deletions
@@ -113,7 +113,7 @@ namespace MQTTnet.Implementations
}
catch (Exception exception)
{
_logger.Error(exception, "Error while cleaning up client connection");
_logger.Error(exception, "Error while cleaning up client connection.");
}
}
}
@@ -59,7 +59,7 @@ namespace MQTTnet.Implementations
_localEndPoint = new IPEndPoint(boundIp, _options.Port);
_logger.Info($"Starting TCP listener for {_localEndPoint} TLS={_tlsCertificate != null}.");
_logger.Info("Starting TCP listener for {0} TLS={1}.", _localEndPoint, _tlsCertificate != null);
_socket = new CrossPlatformSocket(_addressFamily);
@@ -131,7 +131,7 @@ namespace MQTTnet.Implementations
}
}
_logger.Error(exception, $"Error while accepting connection at TCP listener {_localEndPoint} TLS={_tlsCertificate != null}.");
_logger.Error(exception, "Error while accepting connection at TCP listener {0} TLS={1}.", _localEndPoint, _tlsCertificate != null);
await Task.Delay(TimeSpan.FromSeconds(1), cancellationToken).ConfigureAwait(false);
}
}