문제

when I upgraded to Rails 4 my log level is always at DEBUG, even though I have config.logger.level = Logger::WARN in my production.rb

It was working fine previously on Rails 3.2, any ideas where might have changed?

도움이 되었습니까?

해결책

found the problem. you now need to set it via config.log_level

https://github.com/rails/rails/blob/master/railties/lib/rails/application/bootstrap.rb

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top