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:
parent
82d586e701
commit
c1d9187bb6
|
@ -46,8 +46,10 @@ namespace NzbDrone.Core.ImportLists.Custom
|
||||||
|
|
||||||
_importListStatusService.RecordSuccess(Definition.Id);
|
_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);
|
_importListStatusService.RecordFailure(Definition.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,8 +68,10 @@ namespace NzbDrone.Core.ImportLists.Sonarr
|
||||||
|
|
||||||
_importListStatusService.RecordSuccess(Definition.Id);
|
_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);
|
_importListStatusService.RecordFailure(Definition.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue