From 541c1e8b9f0e2e12bd770100888129639cc94827 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Mar 2017 10:15:41 +1300 Subject: addons: start -> load throughout --- examples/simple/log_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/simple/log_events.py') diff --git a/examples/simple/log_events.py b/examples/simple/log_events.py index a81892aa..518a202f 100644 --- a/examples/simple/log_events.py +++ b/examples/simple/log_events.py @@ -7,6 +7,6 @@ If you want to help us out: https://github.com/mitmproxy/mitmproxy/issues/1530 : from mitmproxy import ctx -def start(opts): +def load(opts): ctx.log.info("This is some informative text.") ctx.log.error("This is an error.") -- cgit v1.2.3 From 65f0885bd6809966f694d1ffb965401b8ab2cffc Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Mar 2017 11:29:36 +1300 Subject: addon loader: add boot_into, which replaces returning from start() While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage. --- examples/simple/log_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/simple/log_events.py') diff --git a/examples/simple/log_events.py b/examples/simple/log_events.py index 518a202f..581b99f3 100644 --- a/examples/simple/log_events.py +++ b/examples/simple/log_events.py @@ -7,6 +7,6 @@ If you want to help us out: https://github.com/mitmproxy/mitmproxy/issues/1530 : from mitmproxy import ctx -def load(opts): +def load(l): ctx.log.info("This is some informative text.") ctx.log.error("This is an error.") -- cgit v1.2.3