How to enable database logging in production mode? (Rails v2.3.8)

I have some oddities on my production server, and I need to be able to see all database queries, as in development mode.

I am sure this is a small tweak to the settings, but I cannot find any solutions.

+5
source share
1 answer

In Rails 2.x in the environment.rb file you have:

  # Force all environments to use the same logger level
  # (by default production uses :info, the others :debug)
  # config.log_level = :debug

There should be something similar in Rails 3.x.

+4
source

All Articles