From 48c495f7ae2889d289dba2310cd302660910b952 Mon Sep 17 00:00:00 2001 From: Jeffy Mathew Date: Fri, 11 Oct 2024 17:55:55 +0200 Subject: [PATCH] update logs --- gateway/mw_upstream_basic_auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/mw_upstream_basic_auth.go b/gateway/mw_upstream_basic_auth.go index 14b1a846f5f..14b7b1d995d 100644 --- a/gateway/mw_upstream_basic_auth.go +++ b/gateway/mw_upstream_basic_auth.go @@ -1,13 +1,13 @@ package gateway import ( + "fmt" "net/http" "github.com/sirupsen/logrus" - "github.com/TykTechnologies/tyk/internal/httputil" - "github.com/TykTechnologies/tyk/header" + "github.com/TykTechnologies/tyk/internal/httputil" ) // UpstreamBasicAuth is a middleware that will do basic authentication for upstream connections. @@ -65,7 +65,7 @@ func (u UpstreamBasicAuthProvider) Fill(r *http.Request) { if r.Header.Get(u.HeaderName) != "" { log.WithFields(logrus.Fields{ "header": u.HeaderName, - }).Info("Authorization header conflict detected: Client header overwritten by Gateway upstream authentication header.") + }).Warn(fmt.Sprintf("%s header conflict detected: client header overwritten by Gateway upstream authentication header", u.HeaderName)) } r.Header.Set(u.HeaderName, u.AuthValue) }