New: Improve logging when processing files for import

Closes #5226
This commit is contained in:
Mark McDowall 2022-11-13 18:36:17 -08:00
parent 9bd783d49c
commit ae306274be
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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}");
}
}
}