Skip to content

Commit c052270

Browse files
committed
Group related log toggles together
1 parent 87feb28 commit c052270

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ Rails.application.configure do
3737
# Skip http-to-https redirect for the default health check endpoint.
3838
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
3939

40-
# Prevent health checks from clogging up the logs.
41-
config.silence_healthcheck_path = "/up"
42-
4340
# Log to STDOUT with the current request id as a default log tag.
4441
config.log_tags = [ :request_id ]
4542
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
4643

4744
# Change to "debug" to log everything (including potentially personally-identifiable information!)
4845
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
4946

47+
# Prevent health checks from clogging up the logs.
48+
config.silence_healthcheck_path = "/up"
49+
5050
# Don't log any deprecations.
5151
config.active_support.report_deprecations = false
5252

0 commit comments

Comments
 (0)