1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

Fixed: Spec Logging Statement Causing Sentry Duplicates

This commit is contained in:
Qstick 2019-08-30 23:37:05 -04:00
parent 9ad17a04ff
commit ab7083d263

View File

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