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 = {