From 0ec502bb85dd62c411260ab214ca67dca0ed7c48 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 30 Nov 2022 14:40:02 +1000 Subject: [PATCH] change(log): Log loaded config path when Zebra starts up (#5733) * Log zebrad config path as well as config values * Remove duplicate config log * Only log config path and data for server commands * Use config ref instead --- zebrad/src/application.rs | 1 + zebrad/src/commands/start.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/zebrad/src/application.rs b/zebrad/src/application.rs index b07c41c19..6fb7a0a72 100644 --- a/zebrad/src/application.rs +++ b/zebrad/src/application.rs @@ -402,6 +402,7 @@ impl Application for ZebradApp { // Log git metadata and platform info when zebrad starts up if is_server { tracing::info!("Diagnostic {}", metadata_section); + info!(config_path = ?command.config_path(), config = ?cfg_ref, "loaded zebrad config"); } // Activate the global span, so it's visible when we load the other diff --git a/zebrad/src/commands/start.rs b/zebrad/src/commands/start.rs index b4de3e77d..a524ef712 100644 --- a/zebrad/src/commands/start.rs +++ b/zebrad/src/commands/start.rs @@ -100,7 +100,6 @@ pub struct StartCmd { impl StartCmd { async fn start(&self) -> Result<(), Report> { let config = app_config().clone(); - info!(?config); info!("initializing node state"); let (_, max_checkpoint_height) = zebra_consensus::chain::init_checkpoint_list(