From af1a4ffdcd4c98afefd4228bbc2bc276cfd8436f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 8 May 2018 11:23:52 +1200 Subject: Ditch the addon stdout wrapper This results in a 30% improvement in our core request throughput. Fixes #3102 --- examples/simple/log_events.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/simple/log_events.py') 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.") -- cgit v1.2.3