mirror of https://github.com/Mai-with-u/MaiBot.git
修复错误的envieonment读取导致的debug输出持续开启
parent
47bcd8b2c8
commit
a2c29efb41
2
bot.py
2
bot.py
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue