From 2f04b037a18749f89a976e57d787a106eac86829 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 11 Aug 2024 19:06:51 +0300 Subject: [PATCH] Fixed nlog deprecated calls --- src/NzbDrone.Core/Parser/ParsingService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index 487824092..7cbff94f1 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -420,12 +420,12 @@ namespace NzbDrone.Core.Parser if (imdbId.IsNotNullOrWhiteSpace() && imdbId.Equals(searchCriteria.Series.ImdbId, StringComparison.Ordinal) && tvdbId <= 0) { - _logger.Debug() + _logger.ForDebugEvent() .Message("Found matching series by IMDb ID {0}, an alias may be needed for: {1}", imdbId, parsedEpisodeInfo.SeriesTitle) .Property("ImdbId", imdbId) .Property("ParsedEpisodeInfo", parsedEpisodeInfo) .WriteSentryWarn("ImdbIdMatch", imdbId, parsedEpisodeInfo.SeriesTitle) - .Write(); + .Log(); return new FindSeriesResult(searchCriteria.Series, SeriesMatchType.Id); } @@ -491,12 +491,12 @@ namespace NzbDrone.Core.Parser if (series != null) { - _logger.Debug() + _logger.ForDebugEvent() .Message("Found matching series by IMDb ID {0}, an alias may be needed for: {1}", imdbId, parsedEpisodeInfo.SeriesTitle) .Property("ImdbId", imdbId) .Property("ParsedEpisodeInfo", parsedEpisodeInfo) .WriteSentryWarn("ImdbIdMatch", imdbId, parsedEpisodeInfo.SeriesTitle) - .Write(); + .Log(); matchType = SeriesMatchType.Id; }