about summary refs log tree commit homepage
path: root/lib/mongrel/http_request.rb
diff options
context:
space:
mode:
authorIan Ownbey <ian@inspir.es>2009-01-31 14:18:08 -0800
committerIan Ownbey <ian@inspir.es>2009-01-31 14:18:08 -0800
commitfa82e8e3fb52e0107163e57a705cc652f276e1ab (patch)
tree8bf4e995294379699cefec179a77f711d079ad2b /lib/mongrel/http_request.rb
parentdda58fa2d58c4ab2bda0a9580841e3c4e09bb30c (diff)
parentcb3b9862a5fef4f3fd197e0319bbea0de562f9da (diff)
downloadunicorn-fa82e8e3fb52e0107163e57a705cc652f276e1ab.tar.gz
* 'master' of git@github.com:fauna/mongrel:
  Merge pivotal code.
  Moving toward using a logger instead of dumping to STDERR all over the place.
  TODO been did.
  No commands.
Diffstat (limited to 'lib/mongrel/http_request.rb')
-rw-r--r--lib/mongrel/http_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mongrel/http_request.rb b/lib/mongrel/http_request.rb
index 2416b04..70f236f 100644
--- a/lib/mongrel/http_request.rb
+++ b/lib/mongrel/http_request.rb
@@ -78,8 +78,8 @@ module Mongrel
           remain -= @body.write(@params.http_body)
         end
       rescue Object => e
-        STDERR.puts "#{Time.now}: Error reading HTTP body: #{e.inspect}"
-        STDERR.puts e.backtrace.join("\n")
+        Mongrel.logger.error "#{Time.now}: Error reading HTTP body: #{e.inspect}"
+        Mongrel.logger.error e.backtrace.join("\n")
         # any errors means we should delete the file, including if the file is dumped
         @socket.close rescue nil
         @body.close! if @body.class == Tempfile