diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-10-15 18:25:18 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-10-15 18:25:18 -0700 |
commit | 26af9b29fc3fed60a003d097b3470e85115b2161 (patch) | |
tree | a95cc7ee10b7a03fc4166840356118d3eb37c69f | |
parent | 8c3eed16d449d8f9678ff9a8aedbb2b23388019b (diff) | |
download | mitmproxy-26af9b29fc3fed60a003d097b3470e85115b2161.tar.gz mitmproxy-26af9b29fc3fed60a003d097b3470e85115b2161.tar.bz2 mitmproxy-26af9b29fc3fed60a003d097b3470e85115b2161.zip |
fix #1611
-rw-r--r-- | mitmproxy/protocol/http_replay.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mitmproxy/protocol/http_replay.py b/mitmproxy/protocol/http_replay.py index 5e527f1d..0f027431 100644 --- a/mitmproxy/protocol/http_replay.py +++ b/mitmproxy/protocol/http_replay.py @@ -98,11 +98,9 @@ class RequestReplayThread(basethread.BaseThread): except exceptions.Kill: # Kill should only be raised if there's a channel in the # first place. - from ..proxy.root_context import Log - self.channel.tell("log", Log("Connection killed", "info")) + self.channel.tell("log", controller.LogEntry("Connection killed", "info")) except Exception: - from ..proxy.root_context import Log - self.channel.tell("log", Log(traceback.format_exc(), "error")) + self.channel.tell("log", controller.LogEntry(traceback.format_exc(), "error")) finally: r.first_line_format = first_line_format_backup self.flow.live = False |