From f90e32fc4cf9049d0ea12d10bfa3aa45a8706846 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 9 Jan 2026 22:02:33 +0000 Subject: feat: add helpful feedback after bootstrap relay sync completes When bootstrap sync completes with zero announcements, users may not know if this is expected or indicates a configuration problem (wrong domain or wrong bootstrap relay). Changes: - Add INFO-level message after bootstrap announcement sync completes - If zero announcements: suggest verifying domain/relay configuration - If announcements found: report count for user awareness - Only applies to bootstrap relay (is_bootstrap flag) This helps users quickly diagnose configuration issues during initial setup and testing. Discovered via production sync testing against wss://git.shakespeare.diy --- src/sync/mod.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/sync') diff --git a/src/sync/mod.rs b/src/sync/mod.rs index 6437ee1..70f9dd7 100644 --- a/src/sync/mod.rs +++ b/src/sync/mod.rs @@ -973,6 +973,25 @@ impl SyncManager { sync_method = ?sync_method, "Generic filter (announcements) historic sync complete - announcements_synced set to true" ); + + // Provide helpful feedback for bootstrap relay + if state.is_bootstrap { + let announcement_count = events_count; + if announcement_count == 0 { + tracing::info!( + relay = %relay_url, + domain = %self.config.domain, + "Bootstrap sync found no announcements for domain - verify domain is correct or try different bootstrap relay" + ); + } else { + tracing::info!( + relay = %relay_url, + domain = %self.config.domain, + announcement_count, + "Bootstrap sync discovered announcements for domain" + ); + } + } } // Track if this batch failed (for ConnectedDegraded transition) -- cgit v1.2.3