Log exceptions for failed fetches in Custom and Sonarr import lists

Co-authored-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>

(cherry picked from commit c1d9187bb66c0524048020613d816918b84b5532)
pull/4136/head
Bogdan 8 months ago
parent d8ed41f5e8
commit 780420e799

@ -45,8 +45,10 @@ namespace NzbDrone.Core.ImportLists.Custom
_importListStatusService.RecordSuccess(Definition.Id);
}
catch
catch (Exception ex)
{
_logger.Debug(ex, "Failed to fetch data for list {0} ({1})", Definition.Name, Name);
_importListStatusService.RecordFailure(Definition.Id);
}

@ -75,8 +75,10 @@ namespace NzbDrone.Core.ImportLists.Lidarr
_importListStatusService.RecordSuccess(Definition.Id);
}
catch
catch (Exception ex)
{
_logger.Debug(ex, "Failed to fetch data for list {0} ({1})", Definition.Name, Name);
_importListStatusService.RecordFailure(Definition.Id);
}

Loading…
Cancel
Save