Fixed: Spec Logging Statement Causing Sentry Duplicates

pull/3732/head
Qstick 5 years ago
parent 9ad17a04ff
commit ab7083d263

@ -174,12 +174,10 @@ namespace NzbDrone.Core.MediaFiles.MovieImport
_logger.Warn(e, "Spec " + spec.ToString() + " currently does not implement evaluation for movies."); _logger.Warn(e, "Spec " + spec.ToString() + " currently does not implement evaluation for movies.");
return null; return null;
} }
catch (Exception e) catch (Exception ex)
{ {
//e.Data.Add("report", remoteEpisode.Report.ToJson()); _logger.Error(ex, "Couldn't evaluate decision on {0}", localMovie.Path);
//e.Data.Add("parsed", remoteEpisode.ParsedEpisodeInfo.ToJson()); return new Rejection($"{spec.GetType().Name}: {ex.Message}");
_logger.Error(e, "Couldn't evaluate decision on " + localMovie.Path);
return new Rejection(string.Format("{0}: {1}", spec.GetType().Name, e.Message));
} }
return null; return null;

Loading…
Cancel
Save