diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-11-25 01:51:42 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-11-25 01:51:42 -0800 |
commit | 692ca9453c10bac7e54912c5efc29b2d5ba05448 (patch) | |
tree | bc981c0772e85ac20cb702eef8e07fe0cfb9395f /guides | |
parent | 6da69db9d8d5f293d57945f5e890b45cd5720de2 (diff) | |
download | rails-692ca9453c10bac7e54912c5efc29b2d5ba05448.tar.gz rails-692ca9453c10bac7e54912c5efc29b2d5ba05448.tar.bz2 rails-692ca9453c10bac7e54912c5efc29b2d5ba05448.zip |
Mention log_level deprecation in upgrade guides [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 042ff76212..b906077ae1 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -145,6 +145,18 @@ assigning `nil` to a serialized attribute will save it to the database as `NULL` instead of passing the `nil` value through the coder (e.g. `"null"` when using the `JSON` coder). +### Production log level + +In Rails 5, the default log level for the production environment will be changed +to `:debug` (from `:info`). To preserve the current default, add the following +line to your `production.rb`: + +```ruby +# Set to `:info` to match the current default, or set to `:debug` to opt-into +# the future default. +config.log_level = :info +``` + ### `after_bundle` in Rails templates If you have a Rails template that adds all the files in version control, it |