INNER CODE UNIT · Python

_get_log_prefix

fastapi-practices/fba-slim · backend/main.py:11

def _get_log_prefix() -> str:
    """获取启动日志前缀"""
    return f'{timezone.to_str(timezone.now(), "%Y-%m-%d %H:%M:%S.%M0")} | {"INFO": <8} | - | '


def _prepare_plugins() -> None:
    """检查必需插件并安装缺失依赖"""
    log_prefix = _get_log_prefix()

    console.print(Text(f'{log_prefix}检查必需插件...', style='bold cyan'))

    check_required_plugins()

    console.print(Text(f'{log_prefix}检测插件依赖...', style='bold cyan'))

    plugins = get_plugins()

    with Progress(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…