aboutsummaryrefslogtreecommitdiffstats
path: root/examples/nonblocking.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nonblocking.py')
-rw-r--r--examples/nonblocking.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nonblocking.py b/examples/nonblocking.py
index 05a26921..b81478df 100644
--- a/examples/nonblocking.py
+++ b/examples/nonblocking.py
@@ -5,6 +5,6 @@ from mitmproxy.script import concurrent
@concurrent # Remove this and see what happens
def request(flow):
- mitmproxy.log("handle request: %s%s" % (flow.request.host, flow.request.path))
+ mitmproxy.ctx.log("handle request: %s%s" % (flow.request.host, flow.request.path))
time.sleep(5)
- mitmproxy.log("start request: %s%s" % (flow.request.host, flow.request.path))
+ mitmproxy.ctx.log("start request: %s%s" % (flow.request.host, flow.request.path))