Skip to content

Commit c42fbb8

Browse files
authored
fix: initialize individual tracing for full node (#1267)
1 parent f99215d commit c42fbb8

File tree

1 file changed

+7
-3
lines changed
  • networks/movement/movement-full-node/src

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#![forbid(unsafe_code)]
2-
32
use clap::*;
43
use movement_full_node::MovementFullNode;
5-
4+
use tracing_subscriber::EnvFilter;
65
#[tokio::main]
76
async fn main() -> Result<(), anyhow::Error> {
7+
// Initialize default tracing
8+
tracing_subscriber::fmt()
9+
.with_env_filter(
10+
EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")),
11+
)
12+
.init();
813
let suzuka_util = MovementFullNode::parse();
914
let result = suzuka_util.execute().await;
10-
1115
result
1216
}

0 commit comments

Comments
 (0)