From 36f281d1b3bdeeb7450bde0c2af754bb3cd4da29 Mon Sep 17 00:00:00 2001 From: Thomas Burkhalter Date: Fri, 29 Dec 2023 21:52:16 +0100 Subject: [PATCH] Reactivate STDOUT logging --- config/environments/production.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 19ad5bd6..006861ff 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -75,11 +75,11 @@ # require 'syslog/logger' # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') - # if ENV["RAILS_LOG_TO_STDOUT"].present? - # logger = ActiveSupport::Logger.new(STDOUT) - # logger.formatter = config.log_formatter - # config.logger = ActiveSupport::TaggedLogging.new(logger) - # end + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false