Log calls need formatting arguments as a second arg

This commit is contained in:
jesopo 2019-05-22 11:40:51 +01:00
parent 6ba3588294
commit cf89e28019

View file

@ -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)