Merge pull request #309 from Pliosauroidea/debug

fix:修复错误的environment读取导致的debug输出持续开启
This commit is contained in:
HYY
2025-03-13 09:51:09 +08:00
committed by GitHub

2
bot.py
View File

@@ -102,7 +102,7 @@ def load_logger():
if not os.path.exists(log_path):
os.makedirs(log_path)
current_env = os.getenv("ENV", "dev")
current_env = os.getenv("ENVIRONMENT", "dev")
# 公共配置参数
log_level = os.getenv("LOG_LEVEL", "INFO" if current_env == "prod" else "DEBUG")