Def start() vs addons = []


What’s the difference between using

def start():
    return Test()


addons = [Test()]


One thing that I’ve noticed is with 2nd approach nothing was logged/printed (probably not executed at all) in def response. Why?


For mitmproxy 2.x, please use start(), we may change that with the next release. I don’t think we document addons= somewhere?


It’s still in examples on Github.


You are presumably looking at the examples on the master branch - for 2.x, please look at the 2.x branch.