From d21bb89eebc9fadfa10ce290d836e586197a9e22 Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Fri, 15 May 2026 10:46:28 +0800
Subject: [PATCH] 可选关闭后端的http日志输出,防止轮询刷屏

---
 video-claw/video-claw/backend/api/routers/configuration.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/video-claw/video-claw/backend/api/routers/configuration.py b/video-claw/video-claw/backend/api/routers/configuration.py
index b8a5a85..9fdd11f 100644
--- a/video-claw/video-claw/backend/api/routers/configuration.py
+++ b/video-claw/video-claw/backend/api/routers/configuration.py
@@ -3,6 +3,7 @@
 from fastapi import APIRouter
 from pydantic import BaseModel, Field
 
+from api.logging_config import apply_access_log_setting
 from config import Config, CONFIG_PATH
 
 router = APIRouter(tags=["Configuration"])
@@ -22,7 +23,9 @@
 
 @router.put("/api/config")
 async def update_config(req: ConfigUpdateRequest):
+    config = Config.update_config(req.values)
+    apply_access_log_setting()
     return {
-        "config": Config.update_config(req.values),
+        "config": config,
         "path": str(CONFIG_PATH),
     }

--
Gitblit v1.8.0