Skip to content

Silence reqwest debug/trace level logging #1578

Answered by Victor-N-Suadicani
aress31 asked this question in Q&A
Discussion options

You must be logged in to vote

This depends on what your logging setup is like. If you're using env_logger for instance, you probably have the RUST_LOG environment set to trace, which will simply enable all trace logs from all crates. If you want to restrict reqwest to info and above, you can just set RUST_LOG=trace,reqwest=info which will set all crates to trace level, except for reqwest which will be at the info level. But again, depends on how your logging setup is like.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by seanmonstar
Comment options

You must be logged in to vote
3 replies
@Victor-N-Suadicani
Comment options

@aress31
Comment options

@mbhall88
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants