Skip to content

Commit

Permalink
Disable log message in http timeout middleware (#3598)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalegrala authored Apr 22, 2024
1 parent 533912d commit 148ba6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/tempo/app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 148ba6d

Please sign in to comment.