mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 14:28:46 +01:00
Use Microsoft.Extensions.Logging abstraction
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.ApiClient;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -79,7 +79,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error in OnMessageReceived", ex);
|
||||
_logger.LogError("Error in OnMessageReceived", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -127,7 +127,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Warn("Unable to respond to udp request because the local ip address could not be determined.");
|
||||
_logger.LogWarning("Unable to respond to udp request because the local ip address could not be determined.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error receiving udp message", ex);
|
||||
_logger.LogError("Error receiving udp message", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error receiving udp message", ex);
|
||||
_logger.LogError("Error receiving udp message", ex);
|
||||
}
|
||||
|
||||
BeginReceive();
|
||||
@@ -224,7 +224,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error handling UDP message", ex);
|
||||
_logger.LogError("Error handling UDP message", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
{
|
||||
await _udpClient.SendToAsync(bytes, 0, bytes.Length, remoteEndPoint, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
_logger.Info("Udp message sent to {0}", remoteEndPoint);
|
||||
_logger.LogInformation("Udp message sent to {0}", remoteEndPoint);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
@@ -282,7 +282,7 @@ namespace Emby.Server.Implementations.Udp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error sending message to {0}", ex, remoteEndPoint);
|
||||
_logger.LogError("Error sending message to {0}", ex, remoteEndPoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user