Tell me more ×  In my development logs, i get information like
SQL statements made, etc.  However, when i deploy to a staging
server, i do not get that in my development logs  How do i
configure capistrano/rails to get that?  NOTE: I need it to be
running in production env (database access, etc)  share|improve
this question add comment  1 Answer  up vote 2 down vote
accepted  You can explicitly set the logging level in you
config:  ActiveRecord::Base.logger.level = Logger::DEBUG  I
would actually setup an environment specifically for staging.
Create a staging.rb file in environment (using the above logger
setting and a copy of the rest of production config), create an
entry in database.yml and then start the server with a
RAILS_ENV=staging flag.  share|improve this answer hmmm, where
do i set this if i only want it to happen for the staging
server? There are several configuration files i see –  ming yeow
May 23 '10 at 0:49 added some more detail to my response :p – 
Toby Hede May 23 '10 at 2:35 thanks a lot f