Improved logging
This commit is contained in:
		| @@ -1,14 +1,11 @@ | ||||
| from os import path | ||||
|  | ||||
| import discord | ||||
| from cpl_core.dependency_injection.service_provider_abc import \ | ||||
|     ServiceProviderABC | ||||
| from cpl_core.environment.application_environment_abc import \ | ||||
|     ApplicationEnvironmentABC | ||||
| from cpl_core.dependency_injection import ServiceProviderABC | ||||
| from cpl_core.environment import ApplicationEnvironmentABC | ||||
| from cpl_core.logging import LoggerABC | ||||
| from cpl_query.extension import List | ||||
| from discord.ext import commands | ||||
|  | ||||
| from modules_core.abc.module_abc import ModuleABC | ||||
| from modules_core.abc.module_service_abc import ModuleServiceABC | ||||
|  | ||||
| @@ -23,6 +20,7 @@ class ModuleService(ModuleServiceABC): | ||||
|         self._modules.extend(ModuleABC.__subclasses__()) | ||||
|  | ||||
|     async def start_modules(self): | ||||
|         self._logger.trace(__name__, 'Start loading modules') | ||||
|         modules = self._modules.where(lambda m: hasattr(m, 'on_ready') and callable(m.on_ready)) | ||||
|         for module_type in modules: | ||||
|             module = self._services.get_service(module_type) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user