Skip to content

Commit

Permalink
Merge pull request #79 from jellyfin/10.6-ilogger
Browse files Browse the repository at this point in the history
Fix remaining ILogger
  • Loading branch information
anthonylavado authored Jul 19, 2020
2 parents 15966bf + 1b5c267 commit 99c9b19
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
public class AniDbMovieProvider : IRemoteMetadataProvider<Movie, MovieInfo>
{
private readonly AniDbSeriesProvider _seriesProvider;
private readonly ILogger _log;
private readonly ILogger<AniDbMovieProvider> _logger;

public string Name => "AniDB";

public AniDbMovieProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILoggerFactory loggerFactory)
public AniDbMovieProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILogger<AniDbMovieProvider> logger)
{
_seriesProvider = new AniDbSeriesProvider(appPaths, httpClient);
_log = loggerFactory.CreateLogger("AniDB");
_logger = logger;
}

public async Task<MetadataResult<Movie>> GetMetadata(MovieInfo info, CancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class AniListSeriesProvider : IRemoteMetadataProvider<Series, SeriesInfo>
{
private readonly IHttpClient _httpClient;
private readonly IApplicationPaths _paths;
private readonly ILogger _log;
private readonly ILogger<AniListSeriesProvider> _log;
private readonly AniListApi _aniListApi;
public int Order => -2;
public string Name => "AniList";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public class AniSearchSeriesProvider : IRemoteMetadataProvider<Series, SeriesInf
{
private readonly IHttpClient _httpClient;
private readonly IApplicationPaths _paths;
private readonly ILogger _log;
private readonly ILogger<AniSearchSeriesProvider> _log;
public int Order => -3;
public string Name => "AniSearch";

public AniSearchSeriesProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILoggerFactory loggerFactory)
public AniSearchSeriesProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILogger<AniSearchSeriesProvider> logger)
{
_log = loggerFactory.CreateLogger("AniSearch");
_log = logger;
_httpClient = httpClient;
_paths = appPaths;
}
Expand Down
4 changes: 2 additions & 2 deletions Jellyfin.Plugin.Anime/Providers/equals_check.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ namespace Jellyfin.Plugin.Anime.Providers
{
internal class Equals_check
{
public readonly ILogger _logger;
public readonly ILogger<Equals_check> _logger;

public Equals_check(ILogger logger)
public Equals_check(ILogger<Equals_check> logger)
{
_logger = logger;
}
Expand Down

0 comments on commit 99c9b19

Please sign in to comment.