New: Improve logging when processing files for import

Closes #5226
pull/5173/head
Mark McDowall 2 years ago
parent 9bd783d49c
commit ae306274be

@ -69,7 +69,9 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation
}
catch (Exception ex)
{
_logger.Warn(ex, ex.Message);
var message = $"Unable to augment information for file: '{localEpisode.Path}'. Series: {localEpisode.Series} Error: {ex.Message}";
_logger.Warn(ex, message);
}
}

@ -269,7 +269,7 @@ namespace NzbDrone.Core.Tv
return sortedEpisodes[part.Value - 1];
}
throw new InvalidOperationException("Multiple episodes with the same air date found");
throw new InvalidOperationException($"Multiple episodes with the same air date found. Date: {date}");
}
}
}

Loading…
Cancel
Save