开发者

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 m开发者_如何学JAVAode.

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜