From c15b419c4ca72b821cebeef98124fec47ef6171e Mon Sep 17 00:00:00 2001 From: shaw Date: Fri, 19 Dec 2025 09:39:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=20=E6=B7=BB=E5=8A=A0=20event=5Fl?= =?UTF-8?q?ogging=20=E6=8E=A5=E5=8F=A3=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E?= =?UTF-8?q?200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原本在nginx处理的遥测日志请求移至后端, 忽略Claude Code客户端发送的日志数据。 --- backend/internal/server/router.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/internal/server/router.go b/backend/internal/server/router.go index b28d3c79..caa122eb 100644 --- a/backend/internal/server/router.go +++ b/backend/internal/server/router.go @@ -36,6 +36,11 @@ func registerRoutes(r *gin.Engine, h *handler.Handlers, s *service.Services, rep c.JSON(http.StatusOK, gin.H{"status": "ok"}) }) + // Claude Code 遥测日志(忽略,直接返回200) + r.POST("/api/event_logging/batch", func(c *gin.Context) { + c.Status(http.StatusOK) + }) + // Setup status endpoint (always returns needs_setup: false in normal mode) // This is used by the frontend to detect when the service has restarted after setup r.GET("/setup/status", func(c *gin.Context) {