mirror of https://github.com/Mai-with-u/MaiBot.git
🤖 自动格式化代码 [skip ci]
parent
b83ce184ca
commit
55a44aa062
|
|
@ -369,6 +369,7 @@ TOOL_USE_STYLE_CONFIG = TOOL_USE_STYLE_CONFIG["simple"] if SIMPLE_OUTPUT else TO
|
||||||
PFC_STYLE_CONFIG = PFC_STYLE_CONFIG["simple"] if SIMPLE_OUTPUT else PFC_STYLE_CONFIG["advanced"]
|
PFC_STYLE_CONFIG = PFC_STYLE_CONFIG["simple"] if SIMPLE_OUTPUT else PFC_STYLE_CONFIG["advanced"]
|
||||||
LPMM_STYLE_CONFIG = LPMM_STYLE_CONFIG["simple"] if SIMPLE_OUTPUT else LPMM_STYLE_CONFIG["advanced"]
|
LPMM_STYLE_CONFIG = LPMM_STYLE_CONFIG["simple"] if SIMPLE_OUTPUT else LPMM_STYLE_CONFIG["advanced"]
|
||||||
|
|
||||||
|
|
||||||
def is_registered_module(record: dict) -> bool:
|
def is_registered_module(record: dict) -> bool:
|
||||||
"""检查是否为已注册的模块"""
|
"""检查是否为已注册的模块"""
|
||||||
return record["extra"].get("module") in _handler_registry
|
return record["extra"].get("module") in _handler_registry
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
from src.common.logger import get_module_logger, LogConfig, LPMM_STYLE_CONFIG
|
from src.common.logger import get_module_logger, LogConfig, LPMM_STYLE_CONFIG
|
||||||
|
|
||||||
lpmm_log_config = LogConfig(
|
lpmm_log_config = LogConfig(
|
||||||
console_format = LPMM_STYLE_CONFIG["console_format"],
|
console_format=LPMM_STYLE_CONFIG["console_format"],
|
||||||
file_format=LPMM_STYLE_CONFIG["file_format"],
|
file_format=LPMM_STYLE_CONFIG["file_format"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue