Improved log statements

This commit is contained in:
Sven Heidemann 2021-11-15 21:25:57 +01:00
parent 562caeb10b
commit 4763c41b10

View File

@ -22,7 +22,11 @@ class BotService(BotServiceABC, commands.Bot):
commands.Bot.__init__(self, command_prefix=bot_settings.prefix, help_command=None) commands.Bot.__init__(self, command_prefix=bot_settings.prefix, help_command=None)
async def start_async(self): async def start_async(self):
self._logger.trace(__name__, 'Loading modules:')
self._modules.start_modules() self._modules.start_modules()
self._logger.trace(__name__, 'Finished loading modules')
self._logger.trace(__name__, 'Try to connect to discord')
self.run(self._discord_settings.token) self.run(self._discord_settings.token)
# continue at on_ready # continue at on_ready
@ -32,5 +36,3 @@ class BotService(BotServiceABC, commands.Bot):
# save data # save data
except Exception as e: except Exception as e:
self._logger.error(__name__, 'Stop failed', e) self._logger.error(__name__, 'Stop failed', e)
async def on_ready(self): pass