diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-01-07 20:49:59 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-01-07 20:49:59 -0800 |
commit | 3eb8dd9bd48ae031a90747210c28ece491d1017e (patch) | |
tree | 18dd7b1a6e787571f3ece7f7a97445f6c2d9e3e3 /lib/unicorn.rb | |
parent | 19dac8e60e12036b2717cb4933e79ac9efb04d40 (diff) | |
parent | 52400de1c9e9437b5c9df899f273485f663bb5b5 (diff) | |
download | unicorn-3eb8dd9bd48ae031a90747210c28ece491d1017e.tar.gz |
* rack-1.1: http_response: disallow blank, multi-value headers local.mk.sample: use rack-1.1.0 bump "rack.version" env to [1,1] set env["rack.logger"] for applications
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 69ecf33..7a1ef34 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -250,6 +250,10 @@ module Unicorn def stdout_path=(path); redirect_io($stdout, path); end def stderr_path=(path); redirect_io($stderr, path); end + def logger=(obj) + HttpRequest::DEFAULTS["rack.logger"] = super + end + # sets the path for the PID file of the master process def pid=(path) if path |