diff options
| author | tv <tv@krebsco.de> | 2026-10-26 23:21:01 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 23:21:01 +0100 |
| commit | 813f9c57d227a686c6fb08137a2b6b26e9986ef4 (patch) | |
| tree | 774e8fb9f86d608fe78f40981a6abf6f2ccdd032 /src/main.rs | |
| parent | 932efcc8db81eda6f1d91fda74d002c0aecd6629 (diff) | |
show interpolated values in GET /admin/config
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 0cda7ca..76086ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,10 @@ async fn main() -> Result<()> { let config = config::load()?; if config.print_only { - println!("{}", serde_json::to_string_pretty(&config.report())?); + println!( + "{}", + serde_json::to_string_pretty(&config.report(config::Values::Interpolated))? + ); return Ok(()); } let args = &config.settings; @@ -84,10 +87,10 @@ async fn main() -> Result<()> { bind_addr = args.bind_addr.to_string(), "Starting replication service" ); - debug!( - url = mycelium_rest_url.to_string(), - "Using Mycelium REST API" - ); + // Without a password it may carry (the option is secret). + let mut shown_url = mycelium_rest_url.clone(); + let _ = shown_url.set_password(None); + debug!(url = shown_url.to_string(), "Using Mycelium REST API"); let force = force::Force::parse(args.force.iter().map(String::as_str), config::FORCE) .map_err(anyhow::Error::msg)?; @@ -181,7 +184,7 @@ async fn main() -> Result<()> { files, state_file, document_file, - config_report: config.report(), + config_reports: config.reports(), clock: Default::default(), }); let state = node.state.clone(); |
