How to change log level of SQL queries?

Instead of INFO, I want to have them logged as DEBUG.

Since I guess it’s Sequel doing the logging, I guess I have to access the Sequel::Database object used, to call .sql_log_level = :debug on it. Where is that database object?


I guess rom.gateways[:default].connection is the easiest way to access Sequel DB object.
But I also have the following setup to get debug level messages from Sequel:

logger =$stdout)
# logger.level = Logger::INFO # define your logger level

This is turned on by ENV variable, since by default there are lots of messages generated by Sequel.

Thanks! That was it.