feat: log debug log directory on startup (#8785)

This commit is contained in:
Dan Cline
2024-06-13 07:05:10 -04:00
committed by GitHub
parent 46c8255fa8
commit ce5c6e948a
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ use reth_node_builder::{NodeBuilder, WithLaunchContext};
use reth_primitives::ChainSpec;
use reth_tracing::FileWorkerGuard;
use std::{ffi::OsString, fmt, future::Future, sync::Arc};
use tracing::info;
/// Re-export of the `reth_node_core` types specifically in the `cli` module.
///
@ -139,6 +140,7 @@ impl<Ext: clap::Args + fmt::Debug> Cli<Ext> {
self.logs.log_file_directory.join(self.chain.chain.to_string());
let _guard = self.init_tracing()?;
info!(target: "reth::cli", "Initialized tracing, debug log directory: {}", self.logs.log_file_directory);
let runner = CliRunner::default();
match self.command {