From c612a7ad71da889efe26b75ae7086e1aca83d0fe Mon Sep 17 00:00:00 2001 From: hjwang <2392948297@qq.com> Date: Wed, 10 Jun 2026 10:29:36 +0800 Subject: [PATCH] =?UTF-8?q?style(config):=20=E7=A7=BB=E9=99=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=92=8C=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 config.yaml 中的注释行 - 移除了 app/core/logging.py 中多余的空格 - 移除了 app/main.py 中的环境变量设置代码 - 移除了 app/main.py 中未使用的导入语句 --- app/core/logging.py | 2 +- app/main.py | 5 ----- config.yaml | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/core/logging.py b/app/core/logging.py index b0c5551..69d2111 100644 --- a/app/core/logging.py +++ b/app/core/logging.py @@ -12,7 +12,7 @@ def setup_logging() -> None: log_dir.mkdir(parents=True, exist_ok=True) logger.add( - log_dir / "{time:YYYY-MM-DD}.log", + log_dir /"{time:YYYY-MM-DD}.log", rotation=config.logging.rotation, retention=config.logging.retention, enqueue=True, diff --git a/app/main.py b/app/main.py index a60af9c..aa7b913 100644 --- a/app/main.py +++ b/app/main.py @@ -1,10 +1,5 @@ from __future__ import annotations -import os - -os.environ["MEDIAPIPE_DISABLE_LOGGING"] = "1" -os.environ["GLOG_minloglevel"] = "3" - import asyncio from loguru import logger diff --git a/config.yaml b/config.yaml index 9b13b50..48680cb 100644 --- a/config.yaml +++ b/config.yaml @@ -10,7 +10,7 @@ video: process_every_n_frames: 1 model: - path: "./pose_models/pose_landmarker_full.task" # empty = auto-detect pose_models/pose_landmarker_full.task + path: "./pose_models/pose_landmarker_full.task" prefer_gpu: true dead_bug: