mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
Fix exception logging
This commit is contained in:
@@ -79,7 +79,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("Error in OnMessageReceived", ex);
|
||||
_logger.LogError(ex, "Error in OnMessageReceived");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,7 +171,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("Error receiving udp message", ex);
|
||||
_logger.LogError(ex, "Error receiving udp message");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("Error receiving udp message", ex);
|
||||
_logger.LogError(ex, "Error receiving udp message");
|
||||
}
|
||||
|
||||
BeginReceive();
|
||||
@@ -224,7 +224,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("Error handling UDP message", ex);
|
||||
_logger.LogError(ex, "Error handling UDP message");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
{
|
||||
await _udpClient.SendToAsync(bytes, 0, bytes.Length, remoteEndPoint, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
_logger.LogInformation("Udp message sent to {0}", remoteEndPoint);
|
||||
_logger.LogInformation("Udp message sent to {remoteEndPoint}", remoteEndPoint);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
@@ -282,7 +282,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("Error sending message to {0}", ex, remoteEndPoint);
|
||||
_logger.LogError(ex, "Error sending message to {remoteEndPoint}", remoteEndPoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user