From eb53cc7ed26f451855755164f061ea9f49014f8d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 31 Dec 2017 17:44:48 +0100 Subject: minor fixes --- mitmproxy/addons/clientplayback.py | 4 ++++ mitmproxy/tools/console/consoleaddons.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mitmproxy/addons/clientplayback.py b/mitmproxy/addons/clientplayback.py index bed06e82..3fd96669 100644 --- a/mitmproxy/addons/clientplayback.py +++ b/mitmproxy/addons/clientplayback.py @@ -27,6 +27,7 @@ class ClientPlayback: Stop client replay. """ self.flows = [] + ctx.log.alert("Client replay stopped.") ctx.master.addons.trigger("update", []) @command.command("replay.client") @@ -35,6 +36,7 @@ class ClientPlayback: Replay requests from flows. """ self.flows = list(flows) + ctx.log.alert("Replaying %s flows." % len(self.flows)) ctx.master.addons.trigger("update", []) @command.command("replay.client.file") @@ -43,7 +45,9 @@ class ClientPlayback: flows = io.read_flows_from_paths([path]) except exceptions.FlowReadException as e: raise exceptions.CommandError(str(e)) + ctx.log.alert("Replaying %s flows." % len(self.flows)) self.flows = flows + ctx.master.addons.trigger("update", []) def configure(self, updated): if not self.configured and ctx.options.client_replay: diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py index 20d54bc6..298770c1 100644 --- a/mitmproxy/tools/console/consoleaddons.py +++ b/mitmproxy/tools/console/consoleaddons.py @@ -272,7 +272,7 @@ class ConsoleAddon: @command.command("console.command") def console_command(self, *partial: str) -> None: """ - Prompt the user to edit a command with a (possilby empty) starting value. + Prompt the user to edit a command with a (possibly empty) starting value. """ signals.status_prompt_command.send(partial=" ".join(partial)) # type: ignore -- cgit v1.2.3