修复错误的envieonment读取导致的debug输出持续开启

This commit is contained in:
Pliosauroidea
2025-03-13 09:27:56 +08:00
parent 47bcd8b2c8
commit a2c29efb41

2
bot.py
View File

@@ -102,7 +102,7 @@ def load_logger():
if not os.path.exists(log_path): if not os.path.exists(log_path):
os.makedirs(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") log_level = os.getenv("LOG_LEVEL", "INFO" if current_env == "prod" else "DEBUG")