diff --git a/internal/outpost/proxyv2/application/application.go b/internal/outpost/proxyv2/application/application.go index 57a4a37d31..31224c3bd1 100644 --- a/internal/outpost/proxyv2/application/application.go +++ b/internal/outpost/proxyv2/application/application.go @@ -84,7 +84,7 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, cs *ak.CryptoStore mux := mux.NewRouter() a := &Application{ Host: externalHost.Host, - log: log.WithField("logger", "authentik.outpost.proxy.bundle").WithField("provider", p.Name), + log: muxLogger, outpostName: ak.Outpost.Name, endpint: endpoint, oauthConfig: oauth2Config, diff --git a/internal/outpost/proxyv2/handlers.go b/internal/outpost/proxyv2/handlers.go index 83568fb357..2a3f9d6af8 100644 --- a/internal/outpost/proxyv2/handlers.go +++ b/internal/outpost/proxyv2/handlers.go @@ -49,7 +49,7 @@ func (ps *ProxyServer) lookupApp(r *http.Request) (*application.Application, str // Try to find application by directly looking up host first (proxy, forward_auth_single) a, ok := ps.apps[host] if ok { - ps.log.WithField("host", host).WithField("app", a).Debug("Found app based direct host match") + ps.log.WithField("host", host).WithField("app", a.ProxyConfig().Name).Debug("Found app based direct host match") return a, host } // For forward_auth_domain, we don't have a direct app to domain relationship @@ -76,7 +76,7 @@ func (ps *ProxyServer) lookupApp(r *http.Request) (*application.Application, str if longestMatchLength == 0 { return nil, host } - ps.log.WithField("host", host).WithField("app", longestMatch).Debug("Found app based on cookie domain") + ps.log.WithField("host", host).WithField("app", longestMatch.ProxyConfig().Name).Debug("Found app based on cookie domain") return longestMatch, host }