Skip to content

How to disable logging for PgPool #1868

Answered by Occuros
Occuros asked this question in Q&A
Discussion options

You must be logged in to vote

A simple clone sufficed:

 let options = PgConnectOptions::from_str(uri.as_str()).unwrap()
        .disable_statement_logging().clone();

let pool = PgPool::connect_with(options).await.unwrap();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Occuros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant