diff options
author | morpheus65535 <[email protected]> | 2021-08-10 09:53:47 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-08-10 09:53:47 -0400 |
commit | 83764bb07b152edb8009bbcd70b6809da8cfcd20 (patch) | |
tree | 4d0f1c21568d6bdd000c788349794e513b267b3b | |
parent | 9c9e7de158555c3523600ebd4162e6059353e563 (diff) | |
download | bazarr-83764bb07b152edb8009bbcd70b6809da8cfcd20.tar.gz bazarr-83764bb07b152edb8009bbcd70b6809da8cfcd20.zip |
Added some logging to Sonarr/Radarr get_version.v0.9.7-beta.16
-rw-r--r-- | bazarr/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |