From 9b734c5504db55a603f0ff5e4c28d929ee6f3d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 9 Sep 2020 17:17:10 +0200 Subject: plugins/untrackme: move logging to a less noisy place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/untrackme.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/untrackme.py b/plugins/untrackme.py index 8027c755..c5db1a9d 100644 --- a/plugins/untrackme.py +++ b/plugins/untrackme.py @@ -111,13 +111,13 @@ class Plugin(BasePlugin): if self.config.get('redirect', section='default'): msg['body'] = self.redirect_url(msg['body']) - log.debug( - 'UntrackMe in tab \'%s\':\nOriginal: %s\nModified: %s', - tab.name, orig, msg['body'], - ) - if self.config.get('display_corrections', section='default') and \ msg['body'] != orig: + log.debug( + 'UntrackMe in tab \'%s\':\nOriginal: %s\nModified: %s', + tab.name, orig, msg['body'], + ) + self.api.information( 'UntrackMe in tab \'{}\':\nOriginal: {}\nModified: {}'.format( tab.name, orig, msg['body'] -- cgit v1.2.3