From 85445e683544671da3b3c628b48708a1fdd93408 Mon Sep 17 00:00:00 2001 From: l3uddz Date: Wed, 7 Mar 2018 12:35:44 +0000 Subject: [PATCH] add extra debug log on retrieved tag/profile count --- media/sonarr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media/sonarr.py b/media/sonarr.py index cd08ecf..b032172 100644 --- a/media/sonarr.py +++ b/media/sonarr.py @@ -64,6 +64,7 @@ class Sonarr: if req.status_code == 200: resp_json = req.json() + log.debug("Found %d quality profiles", len(resp_json)) for profile in resp_json: if profile['name'].lower() == profile_name.lower(): log.debug("Found id of %s profile: %d", profile_name, profile['id']) @@ -85,6 +86,7 @@ class Sonarr: if req.status_code == 200: resp_json = req.json() + log.debug("Found %d tags", len(resp_json)) for tag in resp_json: if tag['label'].lower() == tag_name.lower(): log.debug("Found id of %s tag: %d", tag_name, tag['id'])