[deploy] Bug Fix: Setup STDOUT Logger bc we need it (#9256)

This commit is contained in:
Molly Struve 2020-07-10 14:25:21 -05:00 committed by GitHub
parent 8126c5c2c1
commit 628c16fd79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)