From 17773e9b86ea75f3ad3ca1adf23cb510ddf1a02b Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 16 Jan 2021 12:50:08 +0100 Subject: [PATCH] Add nick to logging --- xbotlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbotlib.py b/xbotlib.py index 84485b5..a12fcf9 100644 --- a/xbotlib.py +++ b/xbotlib.py @@ -225,7 +225,7 @@ class Bot(ClientXMPP): try: self.direct(_message) except AttributeError: - self.log.info("Bot.direct not implemented") + self.log.info(f"Bot.direct not implemented for {self.nick}") def session_start(self, message): """Handle session_start event.""" @@ -272,7 +272,7 @@ class Bot(ClientXMPP): try: self.group(_message) except AttributeError: - self.log.info("Bot.group not implemented") + self.log.info(f"Bot.group not implemented for {self.nick}") def register_xmpp_plugins(self): """Register XMPP plugins that the bot supports."""