Skip to content

Commit 47c4edb

Browse files
committed
Add debug logging to handle_helper_start
1 parent 95fcbd6 commit 47c4edb

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/service.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,21 @@ fn handle_helper_start(
320320
}
321321

322322
let result = (|| -> Result<()> {
323+
eprintln!("handle_helper_start: config={}", config_path.display());
323324
let paths = resolve_paths(Some(config_path.clone()))?;
325+
eprintln!("handle_helper_start: paths resolved");
324326
let _ = AppConfig::migrate_config_if_needed(&paths.config_path)?;
325327
let config = AppConfig::load_or_create(&paths.config_path)?;
328+
eprintln!("handle_helper_start: config loaded");
326329

327-
ensure_loopback_alias(&config)?;
330+
ensure_loopback_alias(&config).context("ensure_loopback_alias failed")?;
331+
eprintln!("handle_helper_start: loopback ok");
328332

329-
let bundle = ensure_bundle(&config, &paths.cert_dir)?;
333+
let bundle = ensure_bundle(&config, &paths.cert_dir).context("ensure_bundle failed")?;
334+
eprintln!("handle_helper_start: bundle ok");
330335

331-
apply_hosts(&config, &paths)?;
336+
apply_hosts(&config, &paths).context("apply_hosts failed")?;
337+
eprintln!("handle_helper_start: hosts ok");
332338
let _ = flush_dns_cache();
333339

334340
let pid = std::process::id();

0 commit comments

Comments
 (0)