How to disable query logging in development mode?

subject says it all. i have some queries which insert large amounts
of data and because of this i am unable to watch for any of my own
logging as it gets lost in the output.

Chris

Hi !

2006/9/18, Chris H. [email protected]:

subject says it all. i have some queries which insert large amounts
of data and because of this i am unable to watch for any of my own
logging as it gets lost in the output.

Set your default log level to Level::INFO in environment.rb.
Alternatively, set it in config/environments/development.rb

The line you want to change is this one:

config.log_level = :debug

Change it to:
config.log_level = :info

Hope that helps !

François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/