Skip to content

Commit

Permalink
Mongodb queries are always pushed in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff authored and Miguel Fernández committed Oct 25, 2022
1 parent f56dc0a commit 83b2037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn create_env_filter(log_queries: bool, qe_log_level: &str) -> EnvFilter {
.add_directive(format!("query_core={}", &qe_log_level).parse().unwrap())
.add_directive(format!("query_connector={}", &qe_log_level).parse().unwrap())
.add_directive(format!("sql_query_connector={}", &qe_log_level).parse().unwrap())
.add_directive(format!("mongodb_query_connector={}", &qe_log_level).parse().unwrap());
.add_directive("mongodb_query_connector=debug".parse().unwrap());

if log_queries {
filter = filter.add_directive("quaint[{is_query}]=trace".parse().unwrap());
Expand Down

0 comments on commit 83b2037

Please sign in to comment.