duct-framework / database.sql.hikaricp

Integrant methods for a SQL database connection pool
5 stars 6 forks source link

Is there any way to disable query log? #11

Closed lambdadbmal closed 1 year ago

lambdadbmal commented 1 year ago

Hi,

I want to disable query logs by configuration. Is there any way to do this or change the log level of query log?

I don't want to enable/disable query log per query like issue #3 . I Just want to disable all query logs.

Thank you.

weavejester commented 1 year ago

Just don't set the :logger option. If you don't give it a logger, it doesn't log.

lambdadbmal commented 1 year ago

Thank you!