# Log level to debug in production?

**URL:** <https://www.ruby-forum.com/t/log-level-to-debug-in-production/106594>\
**Category:** Rails\
**Created:** [June 12, 2007, 9:42am UTC](https://www.ruby-forum.com/t/log-level-to-debug-in-production/106594 "2007-06-12T09:42:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 12, 2007, 9:42am UTC](https://www.ruby-forum.com/t/log-level-to-debug-in-production/106594/1 "2007-06-12T09:42:55Z")

</div>

I wanted to check how the sql queries looked like in production mode.  
Launched the app in prod mode with script/server after I set  
config.log\_level = :debug in connfig/environments/production.rb.

For some reason, the production.log did not include any queries, just  
information about the requests. Does that mean that rails magically  
caches everything in my database upon initialization (right…), or am  
I missing something?
