diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:35:20 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 12:11:02 -0300 |
commit | c2e865849beadd99866e521a93d733da7d1b5255 (patch) | |
tree | 0234bfe1aa887a038933bbaa39cca978a5517cd7 /railties/lib/rails/application/bootstrap.rb | |
parent | a502703c3d2151d4d3b421b29fefdac5ad05df61 (diff) | |
download | rails-c2e865849beadd99866e521a93d733da7d1b5255.tar.gz rails-c2e865849beadd99866e521a93d733da7d1b5255.tar.bz2 rails-c2e865849beadd99866e521a93d733da7d1b5255.zip |
Remove deprecation warning when log_level is not explicit set on production
Diffstat (limited to 'railties/lib/rails/application/bootstrap.rb')
-rw-r--r-- | railties/lib/rails/application/bootstrap.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb index 71d3febde4..0f4d932749 100644 --- a/railties/lib/rails/application/bootstrap.rb +++ b/railties/lib/rails/application/bootstrap.rb @@ -1,6 +1,5 @@ require "active_support/notifications" require "active_support/dependencies" -require "active_support/deprecation" require "active_support/descendants_tracker" module Rails @@ -55,18 +54,6 @@ INFO logger end - if Rails.env.production? && !config.has_explicit_log_level? - ActiveSupport::Deprecation.warn \ - "You did not specify a `log_level` in `production.rb`. Currently, " \ - "the default value for `log_level` is `:info` for the production " \ - "environment and `:debug` in all other environments. In Rails 5 " \ - "the default value will be unified to `:debug` across all " \ - "environments. To preserve the current setting, add the following " \ - "line to your `production.rb`:\n" \ - "\n" \ - " config.log_level = :info\n\n" - end - Rails.logger.level = ActiveSupport::Logger.const_get(config.log_level.to_s.upcase) end |