mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
detect tracing_subscriber by RUST_LOG environment var
This commit is contained in:
parent
4f684e4bf4
commit
68e7760b98
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ async fn main() -> Result<()> {
|
|||
// init components
|
||||
let time_init = Local::now();
|
||||
let config = Config::parse();
|
||||
if config.debug {
|
||||
if std::env::var("RUST_LOG").is_ok() {
|
||||
tracing_subscriber::fmt::init()
|
||||
}
|
||||
let peers = Peers::init(&config.initial_peer)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue