about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-04 13:49:09 -0700
committerEric Wong <normalperson@yhbt.net>2010-06-04 13:51:52 -0700
commit798ea473865e6d4a4ed2a35987ba40d2fcbfaf6f (patch)
tree3019ea81374206033b5d59ea57c1f7a9230bb81c
parent2d5a4b075801493a85c6e8d2dbdf0c95002e046d (diff)
downloadunicorn-798ea473865e6d4a4ed2a35987ba40d2fcbfaf6f.tar.gz
Rack::Lint in Rack 1.1.0 does not require a "close" method for
env["rack.logger"], and we never explicitly close our logger,
either.  This more easily allows the use of alternative
Logger-like implementations such as SyslogLogger.
-rw-r--r--lib/unicorn/configurator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index 4fa745d..86e58a0 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -79,13 +79,13 @@ module Unicorn
 
     # sets object to the +new+ Logger-like object.  The new logger-like
     # object must respond to the following methods:
-    #  +debug+, +info+, +warn+, +error+, +fatal+, +close+
+    #  +debug+, +info+, +warn+, +error+, +fatal+
     # The default Logger will log its output to the path specified
     # by +stderr_path+.  If you're running Unicorn daemonized, then
     # you must specify a path to prevent error messages from going
     # to /dev/null.
     def logger(new)
-      %w(debug info warn error fatal close).each do |m|
+      %w(debug info warn error fatal).each do |m|
         new.respond_to?(m) and next
         raise ArgumentError, "logger=#{new} does not respond to method=#{m}"
       end