Skip to content

How to change log level using SqlitePool? #1964

Answered by abonander
M3DZIK asked this question in Q&A
Discussion options

You must be logged in to vote

SqlitePool is just a type alias for Pool<Sqlite> so the answer in #1874 still applies:

  • Create a SqliteConnectOptions and set log_statements on that
  • Call SqlitePool::connect_with() with the options from the previous step.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@M3DZIK
Comment options

Answer selected by abonander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1963 on July 11, 2022 22:37.