mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 09:30:37 +00:00
gc_iteration_internal: better log message & debug log level if nothing to do
fixes https://github.com/neondatabase/neon/issues/3107
This commit is contained in:
committed by
Christian Schwarz
parent
a457256fef
commit
d4d0aa6ed6
@@ -1874,7 +1874,12 @@ impl Tenant {
|
||||
|
||||
utils::failpoint_sleep_millis_async!("gc_iteration_internal_after_getting_gc_timelines");
|
||||
|
||||
info!("starting on {} timelines", gc_timelines.len());
|
||||
// If there is nothing to GC, we don't want any messages in the INFO log.
|
||||
if !gc_timelines.is_empty() {
|
||||
info!("{} timelines need GC", gc_timelines.len());
|
||||
} else {
|
||||
debug!("{} timelines need GC", gc_timelines.len());
|
||||
}
|
||||
|
||||
// Perform GC for each timeline.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user