comparison config/environments/production.rb @ 437:d31fe32da7a0

Finish updating to rails 5
author nanaya <me@myconan.net>
date Sat, 02 Jul 2016 17:04:25 +0900
parents 68eb23b52864
children fd3078b4d355
comparison
equal deleted inserted replaced
436:72557a5310d9 437:d31fe32da7a0
75 75
76 # Use a different logger for distributed setups. 76 # Use a different logger for distributed setups.
77 # require 'syslog/logger' 77 # require 'syslog/logger'
78 # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') 78 # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
79 79
80 if CONFIG["log_to_stdout"] 80 if $cfg[:log_to_stdout]
81 logger = ActiveSupport::Logger.new(STDOUT) 81 logger = ActiveSupport::Logger.new(STDOUT)
82 logger.formatter = config.log_formatter 82 logger.formatter = config.log_formatter
83 config.logger = ActiveSupport::TaggedLogging.new(logger) 83 config.logger = ActiveSupport::TaggedLogging.new(logger)
84 end 84 end
85 85
86 # Do not dump schema after migrations. 86 # Do not dump schema after migrations.