为所有函数和类添加中文注释文档字符串
This commit is contained in:
@@ -5,6 +5,7 @@ from configs.load import config
|
||||
|
||||
|
||||
def startup() -> None:
|
||||
"""应用启动初始化:开启崩溃日志和日志系统"""
|
||||
enable_crash_handler(config.logging.dir_path)
|
||||
from app.core.logging import setup_logging
|
||||
setup_logging()
|
||||
|
||||
@@ -8,6 +8,7 @@ from configs.load import config
|
||||
|
||||
|
||||
def setup_logging() -> None:
|
||||
"""配置loguru日志输出到按日期轮转的日志文件"""
|
||||
log_dir = config.logging.dir_path
|
||||
log_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user