aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/log_events.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-03-14 13:02:58 +1300
committerGitHub <noreply@github.com>2017-03-14 13:02:58 +1300
commit124a6c9e5af44121208c3362215cc3ea895ffad7 (patch)
tree8c8f24f119aae9b22832bfa0e6b5c0a397133d17 /examples/simple/log_events.py
parentee65894d40f5a9f73125a8d3e73ba50540939e5b (diff)
parent1b301ad5bbe5765b608bf4f8480720065d3343c8 (diff)
downloadmitmproxy-124a6c9e5af44121208c3362215cc3ea895ffad7.tar.gz
mitmproxy-124a6c9e5af44121208c3362215cc3ea895ffad7.tar.bz2
mitmproxy-124a6c9e5af44121208c3362215cc3ea895ffad7.zip
Merge pull request #2129 from cortesi/addonopts
Custom options for addons
Diffstat (limited to 'examples/simple/log_events.py')
-rw-r--r--examples/simple/log_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple/log_events.py b/examples/simple/log_events.py
index ab1baf75..a81892aa 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():
+def start(opts):
ctx.log.info("This is some informative text.")
ctx.log.error("This is an error.")