diff options
author | Eric Wong <e@80x24.org> | 2016-07-05 06:58:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-05 13:40:59 +0000 |
commit | 0b00ee9677fdedbfb40a877c797a81b0beb7cbde (patch) | |
tree | b41b5733a455a6552547ac0abb1b4b43c32e22e2 | |
parent | 360f0d40d5cd35304cb01d1db33d1458af491b10 (diff) | |
download | yahns-0b00ee9677fdedbfb40a877c797a81b0beb7cbde.tar.gz |
The HTTP state (@hs) object could be replaced in proxy_wait_next causing @hs.env['rack.logger'] to become inaccessible.
-rw-r--r-- | lib/yahns/proxy_http_response.rb | 2 |
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') |