Merge pull request #309 from Pliosauroidea/debug

fix:修复错误的environment读取导致的debug输出持续开启
pull/313/head
HYY 2025-03-13 09:51:09 +08:00 committed by GitHub
commit 41dafdc1e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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")