From d19cd774456ba7590285a49f72d88eff297e2018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Mon, 6 Jul 2020 21:46:12 +0200 Subject: [PATCH] Fix non-generic ILogger injection --- Jellyfin.Plugin.ServerWMC/WMCService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Plugin.ServerWMC/WMCService.cs b/Jellyfin.Plugin.ServerWMC/WMCService.cs index d2dc559..09d45ce 100644 --- a/Jellyfin.Plugin.ServerWMC/WMCService.cs +++ b/Jellyfin.Plugin.ServerWMC/WMCService.cs @@ -40,7 +40,7 @@ public class WMCService : ILiveTvService, IDisposable int _idStreamInt = 0; // use to generate stream Id string _serverWMC_version = "unknown"; private int _serverWMC_build = 0; - private readonly ILogger _logger; + private readonly ILogger _logger; private readonly string HTTP = @"http://"; @@ -65,7 +65,7 @@ public class WMCService : ILiveTvService, IDisposable public WMCService(IHttpClient httpClient, IFileSystem fileSystem, ILoggerFactory loggerFactory) { Instance = this; - _logger = loggerFactory.CreateLogger(GetType().Name); // start logger + _logger = loggerFactory.CreateLogger(); // start logger _clientVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString(); SocketClientAsync.InitAddress(Plugin.Instance.Configuration.ServerIP, Plugin.Instance.Configuration.ServerPort); // set ip and port