浏览代码

fix: update logging configuration in env.py

Peter De-Ath 9 月之前
父节点
当前提交
03618fd2e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/migrations/env.py

+ 1 - 1
backend/migrations/env.py

@@ -27,7 +27,7 @@ config = context.config
 # Interpret the config file for Python logging.
 # Interpret the config file for Python logging.
 # This line sets up loggers basically.
 # This line sets up loggers basically.
 if config.config_file_name is not None:
 if config.config_file_name is not None:
-    fileConfig(config.config_file_name)
+    fileConfig(config.config_file_name, disable_existing_loggers=False)
 
 
 # add your model's MetaData object here
 # add your model's MetaData object here
 # for 'autogenerate' support
 # for 'autogenerate' support