aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-22 11:40:51 +0100
committerGravatar jesopo2019-05-22 11:56:05 +0100
commitcf89e280197c0eb4faedeb8d4a32c0478acfa611 (patch)
tree15ac52944301a72137adfc315217c6c05b64edaa /modules
parentstdout.write on success for !disconnect (diff)
signature
Log calls need formatting arguments as a second arg
Diffstat (limited to 'modules')
-rw-r--r--modules/line_handler/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py
index ad0b01e3..43cdc4bf 100644
--- a/modules/line_handler/__init__.py
+++ b/modules/line_handler/__init__.py
@@ -53,8 +53,8 @@ class Module(ModuleManager.BaseModule):
context = event["args"][2:-1]
description = event["args"][-1]
- self.log.warn("FAIL (%s %s) received: %s" %
- (command, error_code, description))
+ self.log.warn("FAIL (%s %s) received: %s",
+ [command, error_code, description])
self.events.on("received.fail").call(command=command,
error_code=error_code, context=context, description=description)