Log which server an ERROR came from
This commit is contained in:
parent
c4458653d2
commit
76ae55499b
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
@utils.hook("raw.received.error")
|
@utils.hook("raw.received.error")
|
||||||
def error(self, event):
|
def error(self, event):
|
||||||
self.log.error("ERROR received: %s", [event["args"][0]])
|
self.log.error("ERROR received from %s: %s",
|
||||||
|
[str(event["server"]), event["args"][0]])
|
||||||
@utils.hook("raw.received.fail")
|
@utils.hook("raw.received.fail")
|
||||||
def fail(self, event):
|
def fail(self, event):
|
||||||
command = event["args"][0]
|
command = event["args"][0]
|
||||||
|
|
Loading…
Reference in a new issue