mirror of https://github.com/lidarr/Lidarr
Additional logging when on import decision
This commit is contained in:
parent
828d70b0bd
commit
44e4e46b15
|
@ -114,6 +114,19 @@ namespace NzbDrone.Core.MediaFiles.TrackImport
|
|||
decision = new ImportDecision(localTrack, new Rejection("Unexpected error processing file"));
|
||||
}
|
||||
|
||||
if (decision == null)
|
||||
{
|
||||
_logger.Error("Unable to make a decision on {0}", file);
|
||||
}
|
||||
else if (decision.Rejections.Any())
|
||||
{
|
||||
_logger.Debug("File rejected for the following reasons: {0}", string.Join(", ", decision.Rejections));
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Debug("File accepted");
|
||||
}
|
||||
|
||||
return decision;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue