Skip to content

Commit

Permalink
Fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
kalleep committed Mar 27, 2024
1 parent 0b0ffd8 commit 2224b21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/services/authn/authnimpl/registration.go
@@ -1,6 +1,7 @@
package authnimpl

import (
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/infra/remotecache"
"github.com/grafana/grafana/pkg/login/social"
"github.com/grafana/grafana/pkg/services/accesscontrol"
Expand Down Expand Up @@ -35,6 +36,8 @@ func ProvideRegistration(
socialService social.Service, cache *remotecache.RemoteCache,
ldapService service.LDAP, settingsProviderService setting.Provider,
) Registration {
logger := log.New("authn.registration")

authnSvc.RegisterClient(clients.ProvideRender(renderService))
authnSvc.RegisterClient(clients.ProvideAPIKey(apikeyService))

Expand Down Expand Up @@ -71,8 +74,7 @@ func ProvideRegistration(
if cfg.AuthProxy.Enabled && len(proxyClients) > 0 {
proxy, err := clients.ProvideProxy(cfg, cache, proxyClients...)
if err != nil {
// TODO: Fix logging
// s.log.Error("Failed to configure auth proxy", "err", err)
logger.Error("Failed to configure auth proxy", "err", err)
} else {
authnSvc.RegisterClient(proxy)
}
Expand Down

0 comments on commit 2224b21

Please sign in to comment.