From 0e4077503880d1bb6de20b9cfb14df8e8d0ef943 Mon Sep 17 00:00:00 2001 From: Laura Pierson Wadden Date: Thu, 28 Sep 2017 15:18:11 +0200 Subject: [PATCH] Make stdout logging the default in production --- config/environments/production.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index d2f0ee3..4561c87 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -75,11 +75,9 @@ # 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 + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false