Skip to content

Commit

Permalink
Update dependencies: ignore those updated through caret spec
Browse files Browse the repository at this point in the history
* allow logging environment overwrite by RUST_LOG
  • Loading branch information
Alexandra Sandulescu committed Jan 28, 2022
1 parent 842c875 commit 9b5abf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
3 changes: 2 additions & 1 deletion examples/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn setup_logging_with_clock<F>(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);
Expand Down Expand Up @@ -55,6 +55,7 @@ where
})
.filter(None, LevelFilter::Trace)
.parse_filters(filter)
.parse_env("RUST_LOG")
.init();
}

Expand Down

0 comments on commit 9b5abf0

Please sign in to comment.