From 26af9b29fc3fed60a003d097b3470e85115b2161 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 15 Oct 2016 18:25:18 -0700 Subject: fix #1611 --- mitmproxy/protocol/http_replay.py | 6 ++---- 1 file 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 -- cgit v1.2.3