Adjust Log Level in Ruby on Rails
To adjust your log level for a Rails project, you have two options.
- Edit
config/environment.rband set a global log level. This will override all environments (development, production, etc). - Edit
config/environments/production.rb, for instance to change production's log level. This is recommended. Simply add the lineconfig.log_level = :warnto set WARN level. This will greatly decrease the amount of logging performed.