internal: cleanup log messages
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
89abd44b76
commit
7f47f93e4e
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue