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
This commit is contained in:
teor 2022-11-30 14:40:02 +10:00 committed by GitHub
parent 035fad53e3
commit 0ec502bb85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -402,6 +402,7 @@ impl Application for ZebradApp {
// Log git metadata and platform info when zebrad starts up // Log git metadata and platform info when zebrad starts up
if is_server { if is_server {
tracing::info!("Diagnostic {}", metadata_section); 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 // Activate the global span, so it's visible when we load the other

View File

@ -100,7 +100,6 @@ pub struct StartCmd {
impl StartCmd { impl StartCmd {
async fn start(&self) -> Result<(), Report> { async fn start(&self) -> Result<(), Report> {
let config = app_config().clone(); let config = app_config().clone();
info!(?config);
info!("initializing node state"); info!("initializing node state");
let (_, max_checkpoint_height) = zebra_consensus::chain::init_checkpoint_list( let (_, max_checkpoint_height) = zebra_consensus::chain::init_checkpoint_list(