diff options
author | Maximilian Hils <git@maximilianhils.com> | 2018-05-08 15:24:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 15:24:02 +0200 |
commit | 0c101a4bccfb8460a11691cc17467d47d1974b2f (patch) | |
tree | cac672a0bfa819eac359db5ec1621d1c4de06aaf /examples/simple/log_events.py | |
parent | ad74c18f74256537fd22037e8aec0e9707773fa0 (diff) | |
parent | 7d9b626d2ed304de0f5aa6083c782dcd00ed51dc (diff) | |
download | mitmproxy-0c101a4bccfb8460a11691cc17467d47d1974b2f.tar.gz mitmproxy-0c101a4bccfb8460a11691cc17467d47d1974b2f.tar.bz2 mitmproxy-0c101a4bccfb8460a11691cc17467d47d1974b2f.zip |
Merge pull request #3106 from cortesi/noprint
Ditch the addon stdout wrapper
Diffstat (limited to 'examples/simple/log_events.py')
-rw-r--r-- | examples/simple/log_events.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/simple/log_events.py b/examples/simple/log_events.py index b9aa2c1f..4f70e340 100644 --- a/examples/simple/log_events.py +++ b/examples/simple/log_events.py @@ -1,10 +1,7 @@ -""" -It is recommended to use `ctx.log` for logging within a script. -print() statements are equivalent to ctx.log.warn(). -""" from mitmproxy import ctx def load(l): ctx.log.info("This is some informative text.") + ctx.log.warn("This is a warning.") ctx.log.error("This is an error.") |