Skip to content

Commit

Permalink
Update log level environment variable
Browse files Browse the repository at this point in the history
Rails production environment uses `RAILS_LOG_LEVEL` lets be consistent
with other environments.
  • Loading branch information
gbp committed Jan 15, 2025
1 parent 5dfd5bb commit 546e6a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
Rails.root.join('spec', 'mailers', 'previews')
]

# Set LOG_LEVEL in the environment to a valid log level to temporarily run the
# application with a non-default setting.
config.log_level = ENV.fetch('LOG_LEVEL', :debug)
# Set RAILS_LOG_LEVEL in the environment to a valid log level to temporarily
# run the application with a non-default setting.
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', :debug)

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand Down
6 changes: 3 additions & 3 deletions config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new

# Set LOG_LEVEL in the environment to a valid log level to temporarily run the
# application with a non-default setting.
config.log_level = ENV.fetch('LOG_LEVEL', :info)
# Set RAILS_LOG_LEVEL in the environment to a valid log level to temporarily
# run the application with a non-default setting.
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', :info)

# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
Expand Down

0 comments on commit 546e6a7

Please sign in to comment.