2011-03-22 56 views

回答

4

在Rails 2.x中,environment.rb文件中您有:

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

在Rails 3.x的应该是类似的东西。

+0

这是否适用于数据库日志记录或只是'logger.debug“一些调试消息”'?这是我尝试的第一件事,似乎并不奏效。 – chris 2011-03-22 17:53:21

+0

你重新启动了服务器吗? – edmz 2011-03-22 18:12:41

+0

此外,请检查config/environments/production.rb没有任何设置可能会覆盖environment.rb中的内容.rb – edmz 2011-03-22 18:14:15