mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-02 10:05:30 +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
|
// init components
|
||||||
let time_init = Local::now();
|
let time_init = Local::now();
|
||||||
let config = Config::parse();
|
let config = Config::parse();
|
||||||
if config.debug {
|
if std::env::var("RUST_LOG").is_ok() {
|
||||||
tracing_subscriber::fmt::init()
|
tracing_subscriber::fmt::init()
|
||||||
}
|
}
|
||||||
let peers = Peers::init(&config.initial_peer)?;
|
let peers = Peers::init(&config.initial_peer)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue