diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-09-09 17:17:10 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-09-10 10:11:12 +0200 |
commit | 9b734c5504db55a603f0ff5e4c28d929ee6f3d82 (patch) | |
tree | a9887032c7ee318fdf8ca000bac9b4452f071641 /plugins | |
parent | 235b7a52a492c325371904af68a709ffb53fb9b0 (diff) | |
download | poezio-9b734c5504db55a603f0ff5e4c28d929ee6f3d82.tar.gz poezio-9b734c5504db55a603f0ff5e4c28d929ee6f3d82.tar.bz2 poezio-9b734c5504db55a603f0ff5e4c28d929ee6f3d82.tar.xz poezio-9b734c5504db55a603f0ff5e4c28d929ee6f3d82.zip |
plugins/untrackme: move logging to a less noisy place
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/untrackme.py | 10 |
1 files changed, 5 insertions, 5 deletions
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'] |