aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http_replay.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol/http_replay.py')
-rw-r--r--libmproxy/protocol/http_replay.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmproxy/protocol/http_replay.py b/libmproxy/protocol/http_replay.py
index 00b0b82b..14fbe547 100644
--- a/libmproxy/protocol/http_replay.py
+++ b/libmproxy/protocol/http_replay.py
@@ -1,5 +1,6 @@
from __future__ import (absolute_import, print_function, division)
import threading
+import traceback
from libmproxy.exceptions import ReplayException
from netlib.exceptions import HttpException, TcpException
from netlib.http import http1
@@ -97,5 +98,8 @@ class RequestReplayThread(threading.Thread):
# first place.
from ..proxy.root_context import Log
self.channel.tell("log", Log("Connection killed", "info"))
+ except Exception:
+ from ..proxy.root_context import Log
+ self.channel.tell("log", Log(traceback.format_exc(), "error"))
finally:
r.form_out = form_out_backup