mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-06 17:12:22 +00:00
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
(cherry picked from commit a1ad87387d)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user