A platform for community discussion. Free, open, simple.
FEATURE: log to STDOUT using Rails 5 env var (#18880)
Benno Fünfstück24188beaaf94
diff --git a/config/environments/production.rb b/config/environments/production.rbindex 5b6cd924561..582ae875037 100644--- a/config/environments/production.rb+++ b/config/environments/production.rb@@ -67,4 +67,8 @@ Discourse::Application.configure doendconfig.active_record.dump_schema_after_migration = false++ if ENV["RAILS_LOG_TO_STDOUT"].present?+ config.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))+ endend