mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 控制台默认级别设定为INFO
parent
e6ef2e55e3
commit
7f64d70cd1
|
|
@ -27,7 +27,7 @@ LOG_ROOT = "logs"
|
|||
# 默认全局配置
|
||||
DEFAULT_CONFIG = {
|
||||
# 日志级别配置
|
||||
"console_level": "DEBUG",
|
||||
"console_level": "INFO",
|
||||
"file_level": "DEBUG",
|
||||
|
||||
# 格式配置
|
||||
|
|
@ -159,7 +159,7 @@ def remove_module_logger(module_name: str) -> None:
|
|||
# 添加全局默认处理器(只处理未注册模块的日志--->控制台)
|
||||
DEFAULT_GLOBAL_HANDLER = logger.add(
|
||||
sink=sys.stderr,
|
||||
level="DEBUG",
|
||||
level="INFO",
|
||||
format=(
|
||||
"<green>{time:YYYY-MM-DD HH:mm:ss}</green> | "
|
||||
"<level>{level: <8}</level> | "
|
||||
|
|
|
|||
Loading…
Reference in New Issue