Skip to content

Commit

Permalink
modify logger
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Nov 22, 2024
1 parent 3241f42 commit 130f1fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }

# Log to STDOUT by default
config.logger = ActiveSupport::Logger.new($stdout)
.tap { |logger| logger.formatter = Logger::Formatter.new }
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }
# config.logger = ActiveSupport::Logger.new($stdout)
# .tap { |logger| logger.formatter = Logger::Formatter.new }
# .then { |logger| ActiveSupport::TaggedLogging.new(logger) }

# Prepend all log lines with the following tags.
config.log_tags = [:request_id]
Expand Down

0 comments on commit 130f1fb

Please sign in to comment.