mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
replaced Json.Serialize with ToJson extension method.
This commit is contained in:
parent
676599c520
commit
8bdf8c31f0
10 changed files with 14 additions and 19 deletions
|
@ -6,6 +6,7 @@ using NzbDrone.Core.DecisionEngine.Specifications.Search;
|
|||
using NzbDrone.Core.IndexerSearch.Definitions;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
using NzbDrone.Common.Serializer;
|
||||
|
||||
namespace NzbDrone.Core.DecisionEngine
|
||||
{
|
||||
|
@ -110,8 +111,8 @@ namespace NzbDrone.Core.DecisionEngine
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.Data.Add("report", remoteEpisode.Report);
|
||||
e.Data.Add("parsed", remoteEpisode.ParsedEpisodeInfo);
|
||||
e.Data.Add("report", remoteEpisode.Report.ToJson());
|
||||
e.Data.Add("parsed", remoteEpisode.ParsedEpisodeInfo.ToJson());
|
||||
_logger.ErrorException("Couldn't evaluate decision", e);
|
||||
return string.Format("{0}: {1}", spec.GetType().Name, e.Message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue