Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  *** Exception NoMethodError in PhusionPassenger::Rack::ApplicationSpawner (undefined method `write' for #<Logger:0xb7120ae0>) (process 29953):
  	from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/commonlogger.rb:30:in `log'
  	from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/commonlogger.rb:19:in `call'
  	from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
  • Loading branch information
choonkeat committed Dec 6, 2009
1 parent 0de022c commit ec82b0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.ru
Expand Up @@ -2,6 +2,7 @@ require 'zlib'
require 'stringio'
require 'net/http'
require 'logger'
Logger.class_eval { alias :write :"<<" } unless Logger.instance_methods.include? "write"
LOGGER = Logger.new("log/#{ENV["RACK_ENV"] || 'development'}.log")
use Rack::CommonLogger, LOGGER

Expand Down

0 comments on commit ec82b0a

Please sign in to comment.