Skip to content

Commit ad83b01

Browse files
Merge pull request rails#47307 from zzak/re-47143
💅 use ENV.fetch(name, default) form
2 parents aa3fc0f + d4a5f1c commit ad83b01

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config/environments

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Rails.application.configure do
7070
# Info include generic and useful information about system operation, but avoids logging too much
7171
# information to avoid inadvertent exposure of personally identifiable information (PII). Use "debug"
7272
# for everything.
73-
config.log_level = ENV.fetch("RAILS_LOG_LEVEL") { "info" }
73+
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
7474

7575
# Use a different cache store in production.
7676
# config.cache_store = :mem_cache_store

0 commit comments

Comments
 (0)