mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
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)
This commit is contained in:
parent
d8ed41f5e8
commit
780420e799
2 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue