Loki: Lower log level when retrieving metadata (#87910)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
This commit is contained in:
Fabrizio 2024-05-15 16:08:03 +02:00 committed by GitHub
parent e2f062d16d
commit 953c8f838f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -359,7 +359,9 @@ func setXScopeOrgIDHeader(req *http.Request, ctx context.Context) *http.Request
md, ok := metadata.FromIncomingContext(ctx)
if !ok {
logger.Error("Error in retrieving metadata from context. Header not set")
// Metadata are currently set and needed only locally for multi-tenancy, while on cloud
// this is set by our stack
logger.Debug("Metadata not present in context. Header not set")
return req
}