Skip to content

Commit

Permalink
Merge pull request #342 from autonomys/print-useful-logs-on-start
Browse files Browse the repository at this point in the history
Print some useful logs on start like upstream CLI
  • Loading branch information
nazar-pc authored Dec 2, 2024
2 parents 8ee8daa + f368a95 commit dd3c471
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/backend/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use subspace_service::config::{
use subspace_service::sync_from_dsn::DsnSyncPieceGetter;
use subspace_service::{FullClient, NewFull};
use tokio::time::MissedTickBehavior;
use tracing::{error, info_span};
use tracing::{error, info, info_span};

pub(super) const GENESIS_HASH: &str =
"66455a580aabff303720aa83adbe6c44502922251c03ba73686d5245da9e21bd";
Expand Down Expand Up @@ -493,6 +493,14 @@ pub(super) async fn create_consensus_node(

let consensus_chain_config =
create_consensus_chain_config(keypair, base_path.clone(), substrate_port, chain_spec);

info!(
"📋 Chain specification: {}",
consensus_chain_config.chain_spec.name()
);
info!("🏷 Node name: {}", consensus_chain_config.network.node_name);
info!("💾 Node path: {}", base_path.display());

let sync = consensus_chain_config.network.sync_mode;
let consensus_chain_config = Configuration::from(consensus_chain_config);
let pause_sync = Arc::clone(&consensus_chain_config.network.pause_sync);
Expand Down

0 comments on commit dd3c471

Please sign in to comment.