From ef02631a26bd29f8930585f207839bf35f2bf1e8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 14 Dec 2009 00:09:40 -0800 Subject: set env["rack.logger"] for applications rack.git upstream has it, so it will likely be in Rack 1.1 --- lib/unicorn.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 71d5994..cf58165 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -249,6 +249,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 -- cgit v1.2.3-24-ge0c7