From 6308fdc34899b1e20752b34aa3fd2a1bc1e3cfbd Mon Sep 17 00:00:00 2001 From: jeancf Date: Fri, 18 Nov 2022 13:56:22 +0100 Subject: [PATCH] Reduced debug logging to essential in clean_url() --- twoot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twoot.py b/twoot.py index bb74357..e88d2ec 100755 --- a/twoot.py +++ b/twoot.py @@ -111,7 +111,8 @@ def clean_url(dirty_url): _remove_tracker_params(url_parsed.fragment) ]) - logging.debug('Cleaned URL from: ' + dirty_url + ' to: ' + cleaned_url) + if cleaned_url != dirty_url: + logging.debug('Cleaned URL from: ' + dirty_url + ' to: ' + cleaned_url) return cleaned_url