diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-06-13 00:29:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-13 00:29:43 +0900 |
| commit | 403cd3205ffb970cfda88b6c49dc69127fada798 (patch) | |
| tree | 5c73dd32084db1dd79fbd42f1f8e0cec5277adb5 /Emby.Server.Implementations/Devices/DeviceId.cs | |
| parent | 91fcd56380c6991cbf484bbc1b0ce08b0fab6c1e (diff) | |
| parent | 0982b73c117cc7ee66cde3a3a1bba80a659cfd57 (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.cs | 4 |
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()); |
