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/filter_flows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/simple/filter_flows.py') diff --git a/examples/simple/filter_flows.py b/examples/simple/filter_flows.py index d252089c..aba240de 100644 --- a/examples/simple/filter_flows.py +++ b/examples/simple/filter_flows.py @@ -19,8 +19,8 @@ class Filter: def response(self, flow: http.HTTPFlow) -> None: if flowfilter.match(self.filter, flow): - print("Flow matches filter:") - print(flow) + ctx.log.info("Flow matches filter:") + ctx.log.info(flow) addons = [Filter()] -- cgit v1.2.3