Skip to content

Commit

Permalink
Fix non-generic ILogger injection
Browse files Browse the repository at this point in the history
  • Loading branch information
oddstr13 committed Jul 6, 2020
1 parent 9c5a5cb commit d19cd77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jellyfin.Plugin.ServerWMC/WMCService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<WMCService> _logger;

private readonly string HTTP = @"http://";

Expand All @@ -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<WMCService>(); // start logger
_clientVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();

SocketClientAsync.InitAddress(Plugin.Instance.Configuration.ServerIP, Plugin.Instance.Configuration.ServerPort); // set ip and port
Expand Down

0 comments on commit d19cd77

Please sign in to comment.