aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Devices/DeviceId.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-06-13 00:29:43 +0900
committerGitHub <noreply@github.com>2020-06-13 00:29:43 +0900
commit403cd3205ffb970cfda88b6c49dc69127fada798 (patch)
tree5c73dd32084db1dd79fbd42f1f8e0cec5277adb5 /Emby.Server.Implementations/Devices/DeviceId.cs
parent91fcd56380c6991cbf484bbc1b0ce08b0fab6c1e (diff)
parent0982b73c117cc7ee66cde3a3a1bba80a659cfd57 (diff)
Merge pull request #3254 from crobibero/ilogger
Use typed logger where possible
Diffstat (limited to 'Emby.Server.Implementations/Devices/DeviceId.cs')
-rw-r--r--Emby.Server.Implementations/Devices/DeviceId.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Devices/DeviceId.cs b/Emby.Server.Implementations/Devices/DeviceId.cs
index f0d43e665..fa6ac95fd 100644
--- a/Emby.Server.Implementations/Devices/DeviceId.cs
+++ b/Emby.Server.Implementations/Devices/DeviceId.cs
@@ -12,7 +12,7 @@ namespace Emby.Server.Implementations.Devices
public class DeviceId
{
private readonly IApplicationPaths _appPaths;
- private readonly ILogger _logger;
+ private readonly ILogger<DeviceId> _logger;
private readonly object _syncLock = new object();
@@ -90,7 +90,7 @@ namespace Emby.Server.Implementations.Devices
public DeviceId(IApplicationPaths appPaths, ILoggerFactory loggerFactory)
{
_appPaths = appPaths;
- _logger = loggerFactory.CreateLogger("SystemId");
+ _logger = loggerFactory.CreateLogger<DeviceId>();
}
public string Value => _id ?? (_id = GetDeviceId());