diff options
-rw-r--r-- | lib/yahns/proxy_pass.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb index e86e9c9..7083104 100644 --- a/lib/yahns/proxy_pass.rb +++ b/lib/yahns/proxy_pass.rb @@ -72,6 +72,9 @@ class Yahns::ProxyPass # :nodoc: send_req_buf(req) end rescue => e + # avoid polluting logs with a giant backtrace when the problem isn't + # fixable in code. + e.set_backtrace([]) if Errno::ECONNREFUSED === e c.proxy_err_response(502, self, e, nil) end |