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
This commit is contained in:
DanConwayDev
2026-01-09 22:02:33 +00:00
parent 1079db274e
commit f90e32fc4c
+19
View File
@@ -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)