about summary refs log tree commit homepage
path: root/lib/yahns/proxy_http_response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/proxy_http_response.rb')
-rw-r--r--lib/yahns/proxy_http_response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb
index a37b387..74f5ce5 100644
--- a/lib/yahns/proxy_http_response.rb
+++ b/lib/yahns/proxy_http_response.rb
@@ -46,7 +46,7 @@ module Yahns::HttpResponse # :nodoc:
   end
 
   def proxy_err_response(code, req_res, exc)
-    logger = @hs.env['rack.logger']
+    logger = self.class.logger # Yahns::HttpContext#logger
     case exc
     when nil
       logger.error('premature upstream EOF')