From a26f4ddcd06fc048166ab0c6aa55b8ef1b8ae15a Mon Sep 17 00:00:00 2001 From: Ryan Yanulites Date: Wed, 28 Jan 2026 13:44:51 -0700 Subject: [PATCH] fix logging --- service/authorization/v2/authorization.go | 8 ++++---- service/authorization/v2/config.go | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/service/authorization/v2/authorization.go b/service/authorization/v2/authorization.go index 4fb8e18b55..97261bb28e 100644 --- a/service/authorization/v2/authorization.go +++ b/service/authorization/v2/authorization.go @@ -82,6 +82,10 @@ func NewRegistration() *serviceregistry.Service[authzV2Connect.AuthorizationServ } l.Debug("authorization service config", slog.Any("config", authZCfg.LogValue())) + if authZCfg.AllowDirectEntitlements { + l.Debug("direct entitlements are enabled for authorization service") + } + if !authZCfg.Cache.Enabled { l.Debug("entitlement policy cache is disabled") return as, nil @@ -110,10 +114,6 @@ func NewRegistration() *serviceregistry.Service[authzV2Connect.AuthorizationServ // logger.Error("failed to register authorization readiness check", slog.String("error", err.Error())) // } - if authZCfg.AllowDirectEntitlements { - l.Info("direct entitlements are enabled for authorization service") - } - return as, nil }, }, diff --git a/service/authorization/v2/config.go b/service/authorization/v2/config.go index 24cc4d3236..a8143477de 100644 --- a/service/authorization/v2/config.go +++ b/service/authorization/v2/config.go @@ -56,5 +56,6 @@ func (c *Config) LogValue() slog.Value { slog.String("refresh_interval", c.Cache.RefreshInterval), ), ), + slog.Any("allow_direct_entitlements", c.AllowDirectEntitlements), ) }