From 83764bb07b152edb8009bbcd70b6809da8cfcd20 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 10 Aug 2021 09:53:47 -0400 Subject: [PATCH] Added some logging to Sonarr/Radarr get_version. --- bazarr/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bazarr/utils.py b/bazarr/utils.py index 98f6ec4b6..0a66b5a0c 100644 --- a/bazarr/utils.py +++ b/bazarr/utils.py @@ -261,6 +261,7 @@ class GetSonarrInfo: except Exception: logging.debug('BAZARR cannot get Sonarr version') sonarr_version = 'unknown' + logging.debug('BAZARR got this Sonarr version from its API: {}'.format(sonarr_version)) region.set("sonarr_version", sonarr_version) return sonarr_version @@ -303,6 +304,7 @@ class GetRadarrInfo: """ radarr_version = region.get("radarr_version", expiration_time=datetime.timedelta(seconds=60).total_seconds()) if radarr_version: + region.set("radarr_version", radarr_version) return radarr_version else: radarr_version = '' @@ -318,6 +320,7 @@ class GetRadarrInfo: except Exception as e: logging.debug('BAZARR cannot get Radarr version') radarr_version = 'unknown' + logging.debug('BAZARR got this Radarr version from its API: {}'.format(radarr_version)) region.set("radarr_version", radarr_version) return radarr_version