From a1ad87387d7d7de767c4015f92737de278025748 Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Wed, 3 Sep 2025 11:18:54 +0200 Subject: [PATCH] fix: cleanup information in logs (#10634) # Which Problems Are Solved I noticed some outdated / misleading logs when starting zitadel: - The `init-projections` were no longer in beta for a long time. - The LRU auth request cache is disabled by default, which results in the following message, which has caused confusion by customers: ```level=info msg="auth request cache disabled" error="must provide a positive size"``` # How the Problems Are Solved - Removed the beta info - Disable cache initialization if possible # Additional Changes None # Additional Context - noticed internally - backport to v4.x --- cmd/setup/setup.go | 2 -- internal/auth_request/repository/cache/cache.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/setup/setup.go b/cmd/setup/setup.go index 73489578f8..fd4cbda285 100644 --- a/cmd/setup/setup.go +++ b/cmd/setup/setup.go @@ -571,8 +571,6 @@ func initProjections( ctx context.Context, eventstoreClient *eventstore.Eventstore, ) error { - logging.Info("init-projections is currently in beta") - for _, p := range projection.Projections() { if err := migration.Migrate(ctx, eventstoreClient, p); err != nil { logging.WithFields("name", p.String()).OnError(err).Error("projection migration failed") diff --git a/internal/auth_request/repository/cache/cache.go b/internal/auth_request/repository/cache/cache.go index a59f291d53..19c0b4d976 100644 --- a/internal/auth_request/repository/cache/cache.go +++ b/internal/auth_request/repository/cache/cache.go @@ -27,6 +27,9 @@ func Start(dbClient *database.DB, amountOfCachedAuthRequests uint16) *AuthReques cache := &AuthRequestCache{ client: dbClient, } + if amountOfCachedAuthRequests == 0 { + return cache + } idCache, err := lru.New[string, *domain.AuthRequest](int(amountOfCachedAuthRequests)) logging.OnError(err).Info("auth request cache disabled") if err == nil {