add more logs

This commit is contained in:
yanyongyu
2020-08-25 18:02:18 +08:00
parent c5ea8bc1c3
commit cef3a8236e
5 changed files with 115 additions and 30 deletions

View File

@ -147,6 +147,7 @@ def init(*, _env_file: Optional[str] = None, **kwargs):
"""
global _driver
env = Env()
logger.debug(f"Current Env: {env.environment}")
config = Config(**kwargs, _env_file=_env_file or f".env.{env.environment}")
logger.setLevel(logging.DEBUG if config.debug else logging.INFO)