Daniel
Daniel

Reputation: 253

Rails 4 log level resets to Debug, even in production

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?

Upvotes: 0

Views: 2782

Answers (1)

Daniel
Daniel

Reputation: 253

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

Upvotes: 4

Related Questions