diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-12-31 17:44:48 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-12-31 17:44:48 +0100 |
commit | eb53cc7ed26f451855755164f061ea9f49014f8d (patch) | |
tree | 864415fcdc79757a3938958ae05829930d1fd0bb | |
parent | d9d4d15ee0c27dda0de340716b5275d4d444d0b8 (diff) | |
download | mitmproxy-eb53cc7ed26f451855755164f061ea9f49014f8d.tar.gz mitmproxy-eb53cc7ed26f451855755164f061ea9f49014f8d.tar.bz2 mitmproxy-eb53cc7ed26f451855755164f061ea9f49014f8d.zip |
minor fixes
-rw-r--r-- | mitmproxy/addons/clientplayback.py | 4 | ||||
-rw-r--r-- | mitmproxy/tools/console/consoleaddons.py | 2 |
2 files changed, 5 insertions, 1 deletions
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 |