lib/dcmgr/logger.rb in wakame-vdc-dcmgr-10.12.0 vs lib/dcmgr/logger.rb in wakame-vdc-dcmgr-11.06.0
- old
+ new
@@ -2,10 +2,14 @@
require 'logger'
module Dcmgr
module Logger
- @logdev = ::Logger::LogDevice.new(STDOUT)
+ # for passenger, messages in STDOUT are not appeared in
+ # error.log. $> is changed in initializers/logger.rb as per the
+ # server environment. so that here also refers $> instead of STDOUT or
+ # STDERR constant.
+ @logdev = ::Logger::LogDevice.new($>)
def self.default_logdev
@logdev
end