From 3073d59303d2c859b3e49262bf7083714707e483 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Tue, 11 Aug 2015 18:06:17 +0000 Subject: [PATCH] skip stack trace for normal-ish problems --- warcprox/mitmproxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warcprox/mitmproxy.py b/warcprox/mitmproxy.py index 9d57b44..d60ecd1 100644 --- a/warcprox/mitmproxy.py +++ b/warcprox/mitmproxy.py @@ -83,13 +83,13 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler): self._transition_to_ssl() except Exception as e: try: - self.logger.error("problem handling {}: {}".format(repr(self.requestline), e), exc_info=True) + self.logger.error("problem handling {}: {}".format(repr(self.requestline), e)) if type(e) is socket.timeout: self.send_error(504, str(e)) else: self.send_error(500, str(e)) except Exception as f: - self.logger.warn("failed to send error response ({}) to proxy client: {}".format(e, f), exc_info=True) + self.logger.warn("failed to send error response ({}) to proxy client: {}".format(e, f)) return # Reload!