fix stdout logging for heroku
This commit is contained in:
parent
487272584d
commit
2bb8458e07
1 changed files with 5 additions and 5 deletions
|
@ -1,16 +1,16 @@
|
||||||
|
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb
|
# Settings specified here will take precedence over those in config/application.rb
|
||||||
|
|
||||||
config.log_level = :warn
|
# log to stdout
|
||||||
config.eager_load = true
|
logger = Logger.new(STDOUT)
|
||||||
|
|
||||||
# 12 factor: log to stdout
|
|
||||||
logger = ActiveSupport::Logger.new(STDOUT)
|
|
||||||
logger.formatter = config.log_formatter
|
logger.formatter = config.log_formatter
|
||||||
|
logger.level = :warn
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||||
|
|
||||||
# Code is not reloaded between requests
|
# Code is not reloaded between requests
|
||||||
|
config.eager_load = true
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
|
|
||||||
# Full error reports are disabled and caching is turned on
|
# Full error reports are disabled and caching is turned on
|
||||||
|
|
Loading…
Add table
Reference in a new issue