aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/log_events.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-05-08 15:24:02 +0200
committerGitHub <noreply@github.com>2018-05-08 15:24:02 +0200
commit0c101a4bccfb8460a11691cc17467d47d1974b2f (patch)
treecac672a0bfa819eac359db5ec1621d1c4de06aaf /examples/simple/log_events.py
parentad74c18f74256537fd22037e8aec0e9707773fa0 (diff)
parent7d9b626d2ed304de0f5aa6083c782dcd00ed51dc (diff)
downloadmitmproxy-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.py5
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.")