From 727ade402232312679d41bbc79bfcaf0dec18645 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 20 Nov 2018 12:42:45 +0000 Subject: [PATCH] Only TRACE log when score is more than 0 (mixed_unicode.py) --- modules/mixed_unicode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mixed_unicode.py b/modules/mixed_unicode.py index f74c1e18..42570955 100644 --- a/modules/mixed_unicode.py +++ b/modules/mixed_unicode.py @@ -62,4 +62,6 @@ class Module(ModuleManager.BaseModule): last_script = script last_was_separator = False - self.log.trace("Message given a mixed-unicode score of %d", [score]) + + if score > 0: + self.log.trace("Message given a mixed-unicode score of %d", [score])