diff --git a/Cargo.toml b/Cargo.toml index 448f72d86..f10303837 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,10 @@ autoexamples = false [dependencies] managed = { version = "0.8", default-features = false, features = ["map"] } -byteorder = { version = "1.4", default-features = false } -log = { version = "0.4.14", default-features = false, optional = true } -libc = { version = "0.2.115", optional = true } -bitflags = { version = "1.3", default-features = false } +byteorder = { version = "1.0", default-features = false } +log = { version = "0.4.4", default-features = false, optional = true } +libc = { version = "0.2.18", optional = true } +bitflags = { version = "1.0", default-features = false } defmt = { version = "0.3", optional = true } rand_core = { version = "0.6.3", optional = true, default-features = false } diff --git a/examples/utils.rs b/examples/utils.rs index c9cc70c7a..dcee7b4a6 100644 --- a/examples/utils.rs +++ b/examples/utils.rs @@ -23,7 +23,7 @@ pub fn setup_logging_with_clock(filter: &str, since_startup: F) where F: Fn() -> Instant + Send + Sync + 'static, { - Builder::from_default_env() + Builder::new() .format(move |buf, record| { let elapsed = since_startup(); let timestamp = format!("[{}]", elapsed); @@ -55,6 +55,7 @@ where }) .filter(None, LevelFilter::Trace) .parse_filters(filter) + .parse_env("RUST_LOG") .init(); }