Skip to content

Commit

Permalink
only log to stdout. #230
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 10, 2019
1 parent e44ab77 commit 8910ecb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'] }

Expand Down
3 changes: 3 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 8910ecb

Please sign in to comment.