Skip to content

Commit

Permalink
fix: max_level_debug
Browse files Browse the repository at this point in the history
Enables the `max_level_debug` feature in `log` to omit `trace` level
logs at compile-time. Specifically to omit logs generated by
`log_instrument::instrument`.

Signed-off-by: Jonathan Woollett-Light <[email protected]>
  • Loading branch information
Jonathan Woollett-Light committed Aug 25, 2023
1 parent 9f4c23a commit 59527f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde = { version = "1.0.136", features = ["derive"] }
serde_derive = "1.0.136"
serde_json = "1.0.78"
thiserror = "1.0.32"
log = { version = "0.4.20", features = ["serde"] }
log = { version = "0.4.20", features = ["serde", "max_level_debug"] }
log-instrument = "0.1.4"

logger = { path = "../logger" }
Expand Down
2 changes: 1 addition & 1 deletion src/logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bench = false
[dependencies]
lazy_static = "1.4.0"
libc = "0.2.117"
log = { version = "0.4.14", features = ["std"] }
log = { version = "0.4.20", features = ["serde", "max_level_debug"] }
serde = { version = "1.0.136", features = ["derive", "rc"] }
serde_json = "1.0.78"
thiserror = "1.0.32"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ versionize_derive = "0.1.5"
vmm-sys-util = "0.11.0"
vm-memory = { version = "0.11.0", features = ["backend-mmap", "backend-bitmap"] }
log-instrument = "0.1.4"
log = { version = "0.4.20", features = ["serde"] }
log = { version = "0.4.20", features = ["serde", "max_level_debug"] }
net_gen = { path = "../net_gen" }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/vmm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ versionize_derive = "0.1.5"
vm-allocator = "0.1.0"
vm-fdt = "0.2.0"
vm-superio = "0.7.0"
log = { version = "0.4.20", features = ["serde"] }
log = { version = "0.4.20", features = ["serde", "max_level_debug"] }
log-instrument = "0.1.4"

dumbo = { path = "../dumbo" }
Expand Down

0 comments on commit 59527f5

Please sign in to comment.