about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-14 00:09:40 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-14 00:09:40 -0800
commitef02631a26bd29f8930585f207839bf35f2bf1e8 (patch)
tree591e295ccedb51032a10b8a75f31028aa685bb5f /lib
parent4c8c891b76c2a44a0ae76eea8f07934b984caab0 (diff)
downloadunicorn-ef02631a26bd29f8930585f207839bf35f2bf1e8.tar.gz
rack.git upstream has it, so it will likely be in Rack 1.1
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn.rb4
1 files changed, 4 insertions, 0 deletions
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