# Only sql logging is needed in production not other informati

**URL:** <https://www.ruby-forum.com/t/only-sql-logging-is-needed-in-production-not-other-informati/109707>\
**Category:** Rails\
**Created:** [July 18, 2007, 6:29am UTC](https://www.ruby-forum.com/t/only-sql-logging-is-needed-in-production-not-other-informati/109707 "2007-07-18T06:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [July 18, 2007, 6:29am UTC](https://www.ruby-forum.com/t/only-sql-logging-is-needed-in-production-not-other-informati/109707/1 "2007-07-18T06:29:39Z")

</div>

Hi,

I know that I can enable sql logging in production by doing this:

config.log\_level = :debug

But this will also print information like  
app/views/home/\_homepage\_extra.rhtml:7:in  
`_run_rhtml_47app47views47home47_h omepage_extra46rhtml' app/views/home/_homepage_extra.rhtml:5:in`each’  
app/views/home/\_homepage\_extra.rhtml:5:in  
`_run_rhtml_47app47views47home47_h omepage_extra46rhtml' app/views/layouts/layout_eii.rhtml:66:in`\_run\_rhtml\_47app47views47layouts47  
layout\_eii46rhtml’

I don’t want all that. All I want is production log to behave the way it  
works in default mode . The only extra thing I desire is the logging of  
sql  
statements. How do I accomplish that?
