Commit 9b734c55 authored by Maxime Buquet's avatar Maxime Buquet

plugins/untrackme: move logging to a less noisy place

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 235b7a52
Pipeline #3351 failed with stages
in 5 minutes and 6 seconds
......@@ -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']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment