From 90f7f9ce23542fa997acc165b72917178ab194ad Mon Sep 17 00:00:00 2001 From: Alex Creasy Date: Fri, 8 Nov 2024 12:30:56 +0000 Subject: [PATCH] WIP Signed-off-by: Alex Creasy --- clients/ui/bff/internal/api/middleware.go | 1 - clients/ui/bff/internal/integrations/http.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/ui/bff/internal/api/middleware.go b/clients/ui/bff/internal/api/middleware.go index 219f4063..38be48b4 100644 --- a/clients/ui/bff/internal/api/middleware.go +++ b/clients/ui/bff/internal/api/middleware.go @@ -14,7 +14,6 @@ type contextKey string const httpClientKey contextKey = "httpClientKey" const userAccessToken = "x-forwarded-access-token" -const defaultLoggerKey contextKey = "defaultLoggerKey" func (app *App) RecoverPanic(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/clients/ui/bff/internal/integrations/http.go b/clients/ui/bff/internal/integrations/http.go index 9bbd3930..78ea0574 100644 --- a/clients/ui/bff/internal/integrations/http.go +++ b/clients/ui/bff/internal/integrations/http.go @@ -57,6 +57,7 @@ func (c *HTTPClient) GET(url string) ([]byte, error) { } req.Header.Add("Authorization", "Bearer "+c.bearerToken) + c.logger.Debug("Upstream Request", "url") response, err := c.client.Do(req) if err != nil { return nil, err