修复错误的envieonment读取导致的debug输出持续开启
This commit is contained in:
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user