Improved log statements
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user