Skip to content

Commit

Permalink
logs: use tracing-subscriber instead of env-logger
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <ljedrz@gmail.com>
  • Loading branch information
ljedrz committed Sep 28, 2020
1 parent 1050f73 commit 7db294b
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 4 deletions.
74 changes: 72 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -55,14 +55,14 @@ snarkos-utilities = { path = "./utilities", version = "1.1.4"}
clap = { version = "2.33.3" }
colored = { version = "2.0" }
dirs = { version = "3.0.1" }
env_logger = { version = "0.7.1" }
hex = { version = "0.4.1" }
rand = { version = "0.7" }
self_update = { version = "0.20.0", features = ["archive-zip", "compression-zip-bzip2", "compression-zip-deflate", "compression-flate2"] }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "0.2.22", features = ["full"] }
toml = { version = "0.5.6" }
tracing = { default-features = false, features = ["log"], version = "0.1" }
tracing-subscriber = { version = "0.2" }

[dev-dependencies]
rusty-hook = { version = "0.11.2" }
Expand Down
2 changes: 1 addition & 1 deletion snarkos/main.rs
Expand Up @@ -54,7 +54,7 @@ async fn start_server(config: Config) -> Result<(), NodeError> {
_ => std::env::set_var("RUST_LOG", "info"),
};

env_logger::init();
tracing_subscriber::fmt::init();
println!("{}", render_init(&config));
}
}
Expand Down

0 comments on commit 7db294b

Please sign in to comment.