Merge branch 'master' into 16007-permission-table-rb
[arvados.git] / services / api / config / application.rb
index f211ec9e0cde5c67160bda1bde97e20cdb7861a8..b6174a0d8989f36e2e851431b18fe1627a33dbb8 100644 (file)
@@ -40,6 +40,10 @@ if defined?(Bundler)
   end
 end
 
+if ENV["ARVADOS_RAILS_LOG_TO_STDOUT"]
+  Rails.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
+end
+
 module Server
   class Application < Rails::Application
     # The following is to avoid SafeYAML's warning message