From 1a50717e33592e41f267374f82cd0f267a44d92b Mon Sep 17 00:00:00 2001 From: Divyanshupandey007 <79376921+Divyanshupandey007@users.noreply.github.com> Date: Fri, 16 Jan 2026 01:43:13 +0530 Subject: [PATCH] fix: reduce log verbosity for /api/operations polling (#8050) * fix: reduce log verbosity for /api/operations polling Reduces log clutter by changing the log level from INFO to DEBUG for successful (200 OK) /api/operations requests. This endpoint is polled frequently by the Web UI, causing log spam. Fixes #7989. * fix: reduce log verbosity for /api/operations polling Reduces log clutter by changing the log level from INFO to DEBUG for successful (200 OK) /api/operations requests. This endpoint is polled frequently by the Web UI, causing log spam. Fixes #7989. --- core/http/app.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/http/app.go b/core/http/app.go index 328a9d8e9..376a403dc 100644 --- a/core/http/app.go +++ b/core/http/app.go @@ -108,7 +108,15 @@ func API(application *application.Application) (*echo.Echo, error) { req := c.Request() res := c.Response() err := next(c) - xlog.Info("HTTP request", "method", req.Method, "path", req.URL.Path, "status", res.Status) + + // Fix for #7989: Reduce log verbosity of Web UI polling + // If the path is /api/operations and the request was successful (200), + // we log it at DEBUG level (hidden by default) instead of INFO. + if req.URL.Path == "/api/operations" && res.Status == 200 { + xlog.Debug("HTTP request", "method", req.Method, "path", req.URL.Path, "status", res.Status) + } else { + xlog.Info("HTTP request", "method", req.Method, "path", req.URL.Path, "status", res.Status) + } return err } })