# Def start() vs addons = \[\]

**URL:** <https://discourse.mitmproxy.org/t/def-start-vs-addons/541>\
**Category:** help\
**Created:** [July 6, 2017, 9:07am UTC](https://discourse.mitmproxy.org/t/def-start-vs-addons/541 "2017-07-06T09:07:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anadius](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/anadius/32/168_2.png) [@anadius](https://discourse.mitmproxy.org/u/anadius)\
**Post date:** [July 6, 2017, 9:07am UTC](https://discourse.mitmproxy.org/t/def-start-vs-addons/541/1 "2017-07-06T09:07:06Z")

</div>

What’s the difference between using

```
def start():
    return Test()

```

and

```
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?

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [July 13, 2017, 12:52pm UTC](https://discourse.mitmproxy.org/t/def-start-vs-addons/541/2 "2017-07-13T12:52:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anadius](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/anadius/32/168_2.png) [@anadius](https://discourse.mitmproxy.org/u/anadius)\
**Post date:** [July 13, 2017, 1:05pm UTC](https://discourse.mitmproxy.org/t/def-start-vs-addons/541/3 "2017-07-13T13:05:22Z")

</div>

It’s still in examples on Github.

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [July 20, 2017, 1:30pm UTC](https://discourse.mitmproxy.org/t/def-start-vs-addons/541/4 "2017-07-20T13:30:05Z")

</div>

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