mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Refactor log messages.
This commit is contained in:
@@ -364,7 +364,7 @@ namespace MQTTnet.Extensions.ManagedClient
|
|||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
_logger.Error(exception, "Unhandled exception while publishing queued application messages.");
|
_logger.Error(exception, "Error while publishing queued application messages.");
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@@ -424,7 +424,7 @@ namespace MQTTnet.Extensions.ManagedClient
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
transmitException = exception;
|
transmitException = exception;
|
||||||
_logger.Error(exception, $"Unhandled exception while publishing application message ({message.Id}).");
|
_logger.Error(exception, $"Error while publishing application message ({message.Id}).");
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user