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:
parent
035fad53e3
commit
0ec502bb85
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue