From 148ba6dbb980f27fff57073a534a44a698f3c02d Mon Sep 17 00:00:00 2001 From: Zach Leslie Date: Mon, 22 Apr 2024 17:50:23 +0000 Subject: [PATCH] Disable log message in http timeout middleware (#3598) --- cmd/tempo/app/modules.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tempo/app/modules.go b/cmd/tempo/app/modules.go index 9e45eccf6cd..d3fce7d50f0 100644 --- a/cmd/tempo/app/modules.go +++ b/cmd/tempo/app/modules.go @@ -8,6 +8,7 @@ import ( "net/http" "path" + kitlog "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/grafana/dskit/dns" "github.com/grafana/dskit/kv/codec" @@ -382,7 +383,7 @@ func (t *App) initQueryFrontend() (services.Service, error) { // use the api timeout for http requests if set. note that this is set in initServer() for // grpc requests if t.cfg.Frontend.APITimeout > 0 { - httpAPIMiddleware = append(httpAPIMiddleware, middleware.NewTimeoutMiddleware(t.cfg.Frontend.APITimeout, "unable to process request in the configured timeout", t.Server.Log())) + httpAPIMiddleware = append(httpAPIMiddleware, middleware.NewTimeoutMiddleware(t.cfg.Frontend.APITimeout, "unable to process request in the configured timeout", kitlog.NewNopLogger())) } // wrap handlers with auth