TRACE log score with 2 decimal places (mixed_unicode.py)

This commit is contained in:
jesopo 2018-11-20 13:14:35 +00:00
parent 3dccc9f4e0
commit 5ea34b261f

View file

@ -70,4 +70,4 @@ class Module(ModuleManager.BaseModule):
score = score/(len(event["message"])/SCORE_LENGTH)
score = round(score, 2)
if score > 0:
self.log.trace("Message given a mixed-unicode score of %f", [score])
self.log.trace("Message given a mixed-unicode score of %s", [score])