diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-06-08 14:09:59 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2016-06-08 14:09:59 +1200 |
commit | e93fe9d4fa37ec1aae60eee612be7a9cd989891c (patch) | |
tree | b6d29eb42c7989e5b44fb9221a358fecfe672ad4 /examples/nonblocking.py | |
parent | db11fe0087776c2bf5d95f5aeb751c6c35d67f4b (diff) | |
parent | a5cb241c7cb1035b4d9ff43fb1c8958b7b3dac1d (diff) | |
download | mitmproxy-e93fe9d4fa37ec1aae60eee612be7a9cd989891c.tar.gz mitmproxy-e93fe9d4fa37ec1aae60eee612be7a9cd989891c.tar.bz2 mitmproxy-e93fe9d4fa37ec1aae60eee612be7a9cd989891c.zip |
Merge pull request #1228 from cortesi/controller2
Controller refactoring
Diffstat (limited to 'examples/nonblocking.py')
-rw-r--r-- | examples/nonblocking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nonblocking.py b/examples/nonblocking.py index 41674b2a..4609f389 100644 --- a/examples/nonblocking.py +++ b/examples/nonblocking.py @@ -4,6 +4,6 @@ from mitmproxy.script import concurrent @concurrent # Remove this and see what happens def request(context, flow): - print("handle request: %s%s" % (flow.request.host, flow.request.path)) + context.log("handle request: %s%s" % (flow.request.host, flow.request.path)) time.sleep(5) - print("start request: %s%s" % (flow.request.host, flow.request.path)) + context.log("start request: %s%s" % (flow.request.host, flow.request.path)) |