From 4763c41b1084d3af1a64b0b7c3b940fe6d136dfa Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 15 Nov 2021 21:25:57 +0100 Subject: [PATCH] Improved log statements --- src/gismo_core/service/bot_service.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gismo_core/service/bot_service.py b/src/gismo_core/service/bot_service.py index da34f9c..3baba01 100644 --- a/src/gismo_core/service/bot_service.py +++ b/src/gismo_core/service/bot_service.py @@ -22,7 +22,11 @@ class BotService(BotServiceABC, commands.Bot): commands.Bot.__init__(self, command_prefix=bot_settings.prefix, help_command=None) async def start_async(self): + self._logger.trace(__name__, 'Loading 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) # continue at on_ready @@ -32,5 +36,3 @@ class BotService(BotServiceABC, commands.Bot): # save data except Exception as e: self._logger.error(__name__, 'Stop failed', e) - - async def on_ready(self): pass