# Development Log does not include SQL statements

**URL:** <https://www.ruby-forum.com/t/development-log-does-not-include-sql-statements/166696>\
**Category:** Rails\
**Created:** [April 28, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/development-log-does-not-include-sql-statements/166696 "2009-04-28T16:58:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dano](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dano](https://www.ruby-forum.com/u/dano)\
**Post date:** [April 28, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/development-log-does-not-include-sql-statements/166696/1 "2009-04-28T16:58:15Z")

</div>

I’m using rails 2.2.2 on windows with sql server

I have the following in my ‘environment.rb’  
config.log\_level = :debug

development.rb has the following  
config.cache\_classes = false  
config.whiny\_nils = true  
config.action\_controller.consider\_all\_requests\_local = true  
config.action\_view.debug\_rjs = true  
config.action\_controller.perform\_caching = false  
config.action\_mailer.raise\_delivery\_errors = false

I’d like to see the SQL commands logged to the development log file,  
but I don’t see any.

Can someone please tell me why SQL is not being logged?

---

<div class="post-metadata">

**Author:** ![dano](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@dano](https://www.ruby-forum.com/u/dano)\
**Post date:** [May 9, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/development-log-does-not-include-sql-statements/166696/2 "2009-05-09T17:16:55Z")

</div>

Can you check if your database.yml has the correct creadentials and  
that your app is able to connect to the db ?
