From 8910ecb2eb8befe754451558ba1c9a084d863756 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 10 Apr 2019 09:20:53 +0200 Subject: [PATCH] only log to stdout. #230 --- config/application.rb | 5 +++++ config/environments/test.rb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/config/application.rb b/config/application.rb index 7e7eb0102..bd7b0b127 100644 --- a/config/application.rb +++ b/config/application.rb @@ -73,6 +73,11 @@ class Application < Rails::Application # secret_key_base is not used by Rails API, as there are no sessions config.secret_key_base = 'blipblapblup' + # Write all logs to STDOUT instead of file + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + # configure caching config.cache_store = :dalli_store, nil, { :namespace => ENV['APPLICATION'] } diff --git a/config/environments/test.rb b/config/environments/test.rb index 18ad5de98..253568d67 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -12,6 +12,9 @@ # preloads Rails for running tests, you may have to set it to true. config.eager_load = false + # don't use debug level + config.log_level = :info + # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = {