From a880386184c7b92dc7284487135c611482ca649e Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 31 Aug 2022 10:35:46 -0400 Subject: [PATCH] Improved exceptions logging for events received through SignalR feeds. --- bazarr/radarr/sync/movies.py | 2 +- bazarr/sonarr/sync/episodes.py | 2 +- bazarr/sonarr/sync/series.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bazarr/radarr/sync/movies.py b/bazarr/radarr/sync/movies.py index dd7fcd681..64b1384ff 100644 --- a/bazarr/radarr/sync/movies.py +++ b/bazarr/radarr/sync/movies.py @@ -219,7 +219,7 @@ def update_one_movie(movie_id, action, defer_search=False): movie = movieParser(movie_data, action='insert', tags_dict=tagsDict, movie_default_profile=movie_default_profile, audio_profiles=audio_profiles) except Exception: - logging.debug('BAZARR cannot get movie returned by SignalR feed from Radarr API.') + logging.exception('BAZARR cannot get movie returned by SignalR feed from Radarr API.') return # Drop useless events diff --git a/bazarr/sonarr/sync/episodes.py b/bazarr/sonarr/sync/episodes.py index 9daa04282..0a9e00944 100644 --- a/bazarr/sonarr/sync/episodes.py +++ b/bazarr/sonarr/sync/episodes.py @@ -198,7 +198,7 @@ def sync_one_episode(episode_id, defer_search=False): episode_file_id=episode_data['episodeFileId']) episode = episodeParser(episode_data) except Exception: - logging.debug('BAZARR cannot get episode returned by SignalR feed from Sonarr API.') + logging.exception('BAZARR cannot get episode returned by SignalR feed from Sonarr API.') return # Drop useless events diff --git a/bazarr/sonarr/sync/series.py b/bazarr/sonarr/sync/series.py index aa0c08ed0..d6bf94a30 100644 --- a/bazarr/sonarr/sync/series.py +++ b/bazarr/sonarr/sync/series.py @@ -189,7 +189,7 @@ def update_one_series(series_id, action): serie_default_profile=serie_default_profile, audio_profiles=audio_profiles) except Exception: - logging.debug('BAZARR cannot parse series returned by SignalR feed.') + logging.exception('BAZARR cannot get series returned by SignalR feed from Sonarr API.') return # Update existing series in DB