From b6fcdd9a7263b44b22b23836a23afc4d10254e45 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 9 Dec 2025 08:26:29 -0300 Subject: [PATCH] debug: Add explicit branch logging to trace bootstrap flow --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index 04e3222bc..f51cd942c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -479,7 +479,15 @@ async fn main() -> std::io::Result<()> { .unwrap_or(false) }; + info!( + "Bootstrap check: .env exists={}, init.json exists={}, bootstrap_completed={}", + env_path.exists(), + vault_init_path.exists(), + bootstrap_completed + ); + let cfg = if bootstrap_completed { + info!(">>> BRANCH: bootstrap_completed=TRUE - starting services only"); trace!("Services already configured, ensuring all are running..."); info!("Ensuring database and drive services are running..."); progress_tx_clone @@ -521,6 +529,7 @@ async fn main() -> std::io::Result<()> { } } } else { + info!(">>> BRANCH: bootstrap_completed=FALSE - running full bootstrap"); info!("Bootstrap not complete - running full bootstrap..."); trace!(".env file not found, running bootstrap.bootstrap()..."); if let Err(e) = bootstrap.bootstrap().await {