Finally! An environment variable for Rails log level
Is it me, or should we have had this back in 2006 or so?
I don’t want to complain too much because this is great. Of course you could have set an environment variable at any time and used it in your `production.rb`. But now when you generate a new rails app (version 7.0.4.2 and up) it will have this line in `config/environments/production.rb`:
config.log_level = ENV.fetch("RAILS_LOG_LEVEL") { "info" }
Nice right?!
See the full PR here (it’s merged already): https://github.com/rails/rails/pull/47143