Skip to content

Commit 30fcdb6

Browse files
authored
Use release_max_level_trace instead (#4554)
## Motivation We currently compile out trace logs, even though the overhead is minimal (it's 2 CPU instructions https://www.reddit.com/r/rust/comments/x9nypb/comment/inutkiv/) ## Proposal Stop compiling it out, so we can have `trace` logs if we want for debugging with just a restart, without having to recompile the binary. ## Test Plan I'm benchmarking networks with this, saw no visible performance regression ## Release Plan - Nothing to do / These changes follow the usual release cycle.
1 parent 26f0662 commit 30fcdb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ tonic-web = "0.14"
259259
tonic-web-wasm-client = "0.8.0"
260260
tower = "0.4.13"
261261
tower-http = "0.6.6"
262-
tracing = { version = "0.1.40", features = ["release_max_level_debug"] }
262+
tracing = { version = "0.1.40", features = ["release_max_level_trace"] }
263263
tracing-chrome = "0.7.2"
264264
tracing-opentelemetry = "0.31.0"
265265
tracing-subscriber = { version = "0.3.18", default-features = false, features = [

0 commit comments

Comments
 (0)