From 77fdf59ae3bc14169b45dc42974c75c057b9a90d Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 15 Sep 2022 17:17:07 +0200 Subject: [PATCH] Improve Proxy minimum time debug output --- changedetectionio/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index de9c3903..5b8a38af 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -1455,10 +1455,13 @@ def ticker_thread_check_time_launch_checks(): proxy_list_reuse_time_minimum = int(datastore.proxy_list.get(watch_proxy, {}).get('reuse_time_minimum', 0)) if proxy_list_reuse_time_minimum: proxy_last_used_time = proxy_last_called_time.get(watch_proxy, 0) - time_since_proxy_used = time.time() - proxy_last_used_time + time_since_proxy_used = int(time.time() - proxy_last_used_time) if time_since_proxy_used < proxy_list_reuse_time_minimum: # Not enough time difference reached, skip this watch - print("Skipped UUID {} on proxy {}, not enough time between proxy requests".format(uuid, watch_proxy)) + print("> Skipped UUID {} using proxy '{}', not enough time between proxy requests {}s/{}s".format(uuid, + watch_proxy, + time_since_proxy_used, + proxy_list_reuse_time_minimum)) continue else: # Record the last used time