From 76ae55499b636f2ca84d71f435507f73cbc6ad25 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 19 Mar 2019 10:26:15 +0000 Subject: [PATCH] Log which server an ERROR came from --- modules/line_handler/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py index a3009bf9..144e6102 100644 --- a/modules/line_handler/__init__.py +++ b/modules/line_handler/__init__.py @@ -44,7 +44,8 @@ class Module(ModuleManager.BaseModule): @utils.hook("raw.received.error") 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") def fail(self, event): command = event["args"][0]