diff 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
line wrap: on
line diff
--- a/config/environments/production.rb	Mon Jun 13 15:07:38 2016 +0900
+++ b/config/environments/production.rb	Sat Jul 02 17:04:25 2016 +0900
@@ -77,8 +77,8 @@
   # require 'syslog/logger'
   # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
 
-  if CONFIG["log_to_stdout"]
-    logger           = ActiveSupport::Logger.new(STDOUT)
+  if $cfg[:log_to_stdout]
+    logger = ActiveSupport::Logger.new(STDOUT)
     logger.formatter = config.log_formatter
     config.logger = ActiveSupport::TaggedLogging.new(logger)
   end