views:

31

answers:

1

Hi All,

How can we enabled SQL query logging in production environment?

Thanks,

Imran

+2  A: 

In your environments/production.rb

config.log_level = :debug

Remember you need to restart the web server to apply the changes.

Simone Carletti
Thanks Simone. It works. I was trying with the numbers (0-4).
Imran
accept the answer because it's the good answer like you explain
shingara
Yes, I am trying but getting this message "You can accept an answer in 5 minutes" and waiting for this lag to get past :).
Imran