On May 27, 6:04 pm, David Lee <[email protected]> wrote: > Is there a way to change the log level at which sequel logs all its > queries? Right now, all queries are logged at the "info" level. > > In Rails, I want to set Sequel's log level to "debug" in the > production environment (which only accepts "info" and higher), so that > SQL queries are not logged.
Currently, you need to use a logger proxy object that logs to another logger, using debug for info level logs. I'd be willing to consider a patch that allows you to modify the log level Sequel uses for queries. Should be fairly easy, look in lib/sequel/database/ logging.rb. Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
