From 86241cc19c49f626adad051dbfb351633727003d Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Fri, 6 Jan 2023 14:04:13 +0200 Subject: [PATCH] logs-test --- config/environments/staging.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/environments/staging.rb b/config/environments/staging.rb index d3ca83b349..4e909744f0 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -3,4 +3,10 @@ require 'syslog/logger' config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry')) + + # if ENV["RAILS_LOG_TO_STDOUT"].present? + # logger = ActiveSupport::Logger.new(STDOUT) + # logger.formatter = config.log_formatter + # config.logger = ActiveSupport::TaggedLogging.new(logger) + # end end