Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): log cache full when on debug level #3085

Merged
merged 9 commits into from Aug 3, 2023
1 change: 1 addition & 0 deletions internal/cache/persistent_lru_cache.go
Expand Up @@ -231,6 +231,7 @@ func (c *PersistentCache) Put(ctx context.Context, key string, data gather.Bytes
// MUST NOT go over the specified limit for the cache space to avoid
// snapshots/restores from getting affected by the cache's storage use.
if c.isCacheFullLocked() {
log(ctx).Warnf("Cache is full, unable to add %v into cache.", key)
arouene marked this conversation as resolved.
Show resolved Hide resolved
return
}
}
Expand Down