eviction: tone down logs to debug!() level if there were no evictions

fixes #3647
This commit is contained in:
Christian Schwarz
2023-02-20 16:35:23 +01:00
committed by Christian Schwarz
parent ee1eda9921
commit 485b269674

View File

@@ -199,7 +199,9 @@ impl Timeline {
}
}
}
if stats.errors > 0 || stats.not_evictable > 0 {
if stats.candidates == stats.not_evictable {
debug!(stats=?stats, "eviction iteration complete");
} else if stats.errors > 0 || stats.not_evictable > 0 {
warn!(stats=?stats, "eviction iteration complete");
} else {
info!(stats=?stats, "eviction iteration complete");