Skip to content

Disable query output #291

Answered by AngelOnFira
YoshieraHuang asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on your logger, but this is how I do it:

Builder::new()
    .filter_level(log::LevelFilter::Info)
    .filter_module("sqlx::query", log::LevelFilter::Off)
    .init();

(I'm using the log crate with env_logger)

Replies: 3 comments 3 replies

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@wojciechbator
Comment options

@tyt2y3
Comment options

@wojciechbator
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
4 participants
Converted from issue

This discussion was converted from issue #290 on November 04, 2021 15:44.