aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/addons/clientplayback.py4
-rw-r--r--mitmproxy/tools/console/consoleaddons.py2
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