diff --git a/pageserver/src/tenant/tasks.rs b/pageserver/src/tenant/tasks.rs index c067a84471..df3ffd08d3 100644 --- a/pageserver/src/tenant/tasks.rs +++ b/pageserver/src/tenant/tasks.rs @@ -102,6 +102,7 @@ async fn compaction_loop(tenant: Arc, cancel: CancellationToken) { let started_at = Instant::now(); let sleep_duration = if period == Duration::ZERO { + #[cfg(not(feature = "testing"))] info!("automatic compaction is disabled"); // check again in 10 seconds, in case it's been enabled again. Duration::from_secs(10) @@ -166,6 +167,7 @@ async fn gc_loop(tenant: Arc, cancel: CancellationToken) { let gc_horizon = tenant.get_gc_horizon(); let sleep_duration = if period == Duration::ZERO || gc_horizon == 0 { + #[cfg(not(feature = "testing"))] info!("automatic GC is disabled"); // check again in 10 seconds, in case it's been enabled again. Duration::from_secs(10)