-
How to avoid the impact of logs when doing performance testing in libraries that use tracing? |
Beta Was this translation helpful? Give feedback.
Answered by
hds
May 18, 2023
Replies: 1 comment
-
You can use compile time filters to turn all tracing off: https://docs.rs/tracing/latest/tracing/level_filters/index.html#compile-time-filters You want the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use compile time filters to turn all tracing off: https://docs.rs/tracing/latest/tracing/level_filters/index.html#compile-time-filters
You want the
max_level_off
filter feature (you specify this in Cargo.toml, see the docs at the link for an example).