Add nick to logging

This commit is contained in:
Luke Murphy 2021-01-16 12:50:08 +01:00
parent 4949044377
commit 17773e9b86
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 2 additions and 2 deletions

View File

@ -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."""