12 lines
341 B
Python
12 lines
341 B
Python
from __future__ import annotations
|
|
|
|
from app.diagnostics.crash_handler import enable_crash_handler
|
|
from configs.load import config
|
|
|
|
|
|
def startup() -> None:
|
|
"""应用启动初始化:开启崩溃日志和日志系统"""
|
|
enable_crash_handler(config.logging.dir_path)
|
|
from app.core.logging import setup_logging
|
|
setup_logging()
|