Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

I am sure it is a small config tweak, but I can't find any solutions.

like image 559
chris Avatar asked Oct 12 '22 11:10

chris


1 Answers

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

In Rails 3.x should be something similar.

like image 68
edmz Avatar answered Oct 19 '22 01:10

edmz