Skip to content

Commit

Permalink
feat: Display the reth version in the log (paradigmxyz#7207)
Browse files Browse the repository at this point in the history
  • Loading branch information
winksaville authored and Ruteri committed Apr 17, 2024
1 parent a086ebe commit 7741a12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/reth/src/commands/node/mod.rs
Expand Up @@ -12,7 +12,7 @@ use crate::{
use clap::{value_parser, Args, Parser};
use reth_db::{init_db, DatabaseEnv};
use reth_node_builder::{InitState, NodeBuilder, WithLaunchContext};
use reth_node_core::node_config::NodeConfig;
use reth_node_core::{node_config::NodeConfig, version};
use reth_primitives::ChainSpec;
use std::{ffi::OsString, fmt, future::Future, net::SocketAddr, path::PathBuf, sync::Arc};

Expand Down Expand Up @@ -143,6 +143,8 @@ impl<Ext: clap::Args + fmt::Debug> NodeCommand<Ext> {
L: FnOnce(WithLaunchContext<Arc<DatabaseEnv>, InitState>, Ext) -> Fut,
Fut: Future<Output = eyre::Result<()>>,
{
tracing::info!(target: "reth::cli", version = ?version::SHORT_VERSION, "Starting reth");

let Self {
datadir,
config,
Expand Down

0 comments on commit 7741a12

Please sign in to comment.