Skip to content

Commit

Permalink
Switch env_logger to v0.10
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Zahari Petkov <zahari@balena.io>
majorz committed May 22, 2023

Verified

This commit was signed with the committer’s verified signature.
devinreams Devin Reams
1 parent 43718b0 commit 10b8948
Showing 3 changed files with 25 additions and 27 deletions.
43 changes: 20 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ edition = "2021"
[dependencies]
anyhow = "1"
log = "0.4"
env_logger = "0.6"
env_logger = "0.10"
serde = "1"
serde_derive = "1"
serde_json = "1"
7 changes: 4 additions & 3 deletions src/logger.rs
Original file line number Diff line number Diff line change
@@ -13,9 +13,10 @@ pub fn init_logger() {

builder
.target(Target::Stdout)
.default_format_module_path(false)
.default_format_level(false)
.default_format_timestamp(false);
.format_module_path(false)
.format_level(false)
.format_target(false)
.format_timestamp(None);

builder.init();
}

0 comments on commit 10b8948

Please sign in to comment.