File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
railties/lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,9 @@ Rails.application.configure do
53
53
# Prevent health checks from clogging up the logs.
54
54
config.silence_healthcheck_path = "/up"
55
55
56
- # Log to STDOUT by default.
57
- config.logger = ActiveSupport::Logger.new(STDOUT)
58
- .tap { |logger| logger.formatter = ::Logger::Formatter.new }
59
- .then { |logger| ActiveSupport::TaggedLogging.new(logger) }
60
-
61
- # Prepend all log lines with the following tags.
56
+ # Log to STDOUT with the current request id as a default log tag.
62
57
config.log_tags = [ :request_id ]
58
+ config.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT))
63
59
64
60
# "info" includes generic and useful information about system operation, but avoids logging too much
65
61
# information to avoid inadvertent exposure of personally identifiable information (PII). If you
You can’t perform that action at this time.
0 commit comments