Skip to content

Commit

Permalink
Make stdout logging the default in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Pierson Wadden committed Sep 28, 2017
1 parent 4e27cc1 commit 0e40775
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@
# require 'syslog/logger'
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')

if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
Expand Down

0 comments on commit 0e40775

Please sign in to comment.