1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

Log exceptions for failed fetches in Custom and Sonarr import lists

Co-authored-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
This commit is contained in:
Bogdan 2023-09-15 16:26:57 +03:00 committed by Mark McDowall
parent 82d586e701
commit c1d9187bb6
2 changed files with 6 additions and 2 deletions

View File

@ -46,8 +46,10 @@ public override IList<ImportListItemInfo> Fetch()
_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);
}

View File

@ -68,8 +68,10 @@ public override IList<ImportListItemInfo> Fetch()
_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);
}