Skip to content

Commit 7ef6190

Browse files
committed
enabel the logger
1 parent ca11cfb commit 7ef6190

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networks/movement/movement-full-node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ movement-tracing = { workspace = true }
3131
movement-config = { workspace = true }
3232
dot-movement = { workspace = true }
3333
godfig = { workspace = true }
34-
tracing-subscriber = { workspace = true }
34+
aptos-logger = { workspace = true }
3535
console-subscriber = { workspace = true }
3636
rocksdb = { workspace = true }
3737
tracing = { workspace = true }

networks/movement/movement-full-node/src/main.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
#![forbid(unsafe_code)]
22
use clap::*;
33
use movement_full_node::MovementFullNode;
4-
use tracing_subscriber::EnvFilter;
54

65
#[tokio::main]
76
async fn main() -> Result<(), anyhow::Error> {
8-
// Initialize default tracing
9-
tracing_subscriber::fmt()
10-
.with_env_filter(
11-
EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")),
12-
)
13-
.init();
7+
// Initialize aptos logger
8+
aptos_logger::Logger::builder().level(aptos_logger::Level::Info).build();
149

1510
// Initialize telemetry if MOVEMENT_METRICS_ADDR is set
1611
if std::env::var("MOVEMENT_METRICS_ADDR").is_ok() {

0 commit comments

Comments
 (0)