Ruby on rails log file size too large

前端 未结 9 1350
无人共我
无人共我 2021-02-01 16:01

I stumbled to learn that my rails3.1 log file is super large, around 21mb. Is this, in terms of size normal? What the log file would like in the production environment? Besides,

9条回答
  •  梦毁少年i
    2021-02-01 16:38

    config.logger = ActiveSupport::Logger.new(nil) does the trick and completely disables logging to a file (console output is preserved).

提交回复
热议问题