From 628c16fd79682b5bf2d6074ed73168d96dfb0f8c Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Fri, 10 Jul 2020 14:25:21 -0500 Subject: [PATCH] [deploy] Bug Fix: Setup STDOUT Logger bc we need it (#9256) --- config/environments/production.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index f26f829a6..9fff21bfd 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -105,7 +105,9 @@ Rails.application.configure do logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger) - elsif (ENV["SEND_LOGS_TO_TIMBER"] || "true") == "true" + end + + if (ENV["SEND_LOGS_TO_TIMBER"] || "true") == "true" # Timber.io logger log_device = Timber::LogDevices::HTTP.new(ENV["TIMBER"]) logger = Timber::Logger.new(log_device)