mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 03:33:53 +00:00
If no RUST_LOG env is set, default to Info
This commit is contained in:
parent
388e92ac05
commit
e440475755
@ -20,10 +20,14 @@ use crate::comms::BusMessage;
|
||||
use crate::error::Error;
|
||||
use crate::globals::GLOBALS;
|
||||
use std::ops::DerefMut;
|
||||
use std::{mem, thread};
|
||||
use std::{env, mem, thread};
|
||||
use tracing_subscriber::filter::EnvFilter;
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
if env::var("RUST_LOG").is_err() {
|
||||
env::set_var("RUST_LOG", "info");
|
||||
}
|
||||
|
||||
tracing_subscriber::fmt::fmt()
|
||||
.without_time()
|
||||
.with_file(cfg!(debug_assertions))
|
||||
|
Loading…
Reference in New Issue
Block a user