mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
Use Microsoft.Extensions.Logging abstraction
This commit is contained in:
@@ -3,7 +3,7 @@ using System.IO;
|
||||
using System.Text;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.IO;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Emby.Server.Implementations.Devices
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace Emby.Server.Implementations.Devices
|
||||
return value;
|
||||
}
|
||||
|
||||
_logger.Error("Invalid value found in device id file");
|
||||
_logger.LogError("Invalid value found in device id file");
|
||||
}
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
@@ -45,7 +45,7 @@ namespace Emby.Server.Implementations.Devices
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error reading file", ex);
|
||||
_logger.LogError("Error reading file", ex);
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -66,7 +66,7 @@ namespace Emby.Server.Implementations.Devices
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error writing to file", ex);
|
||||
_logger.LogError("Error writing to file", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user