ERROR log ERRORs from servers (line_handler.py)

This commit is contained in:
jesopo 2019-02-10 12:22:01 +00:00
parent 71eac9d3c0
commit 05ae25d3d7

View file

@ -62,6 +62,10 @@ class Module(ModuleManager.BaseModule):
def ping(self, event):
event["server"].send_pong(event["args"].get(0))
@utils.hook("raw.received.error")
def error(self, event):
self.log.error("error received: %s", [event["args"][0]])
# first numeric line the server sends
@utils.hook("raw.received.001", default_event=True)
def handle_001(self, event):