aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web/master.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-12-21 23:22:14 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-12-21 23:22:14 +0100
commit24751965f99daf83c82d9c1581f712ca24da9d3d (patch)
tree82372bd4cf37a946fac69ccbb8072e417999d473 /mitmproxy/tools/web/master.py
parenta196493a7a43ae45c4f6164b63513e670906acba (diff)
downloadmitmproxy-24751965f99daf83c82d9c1581f712ca24da9d3d.tar.gz
mitmproxy-24751965f99daf83c82d9c1581f712ca24da9d3d.tar.bz2
mitmproxy-24751965f99daf83c82d9c1581f712ca24da9d3d.zip
remove output of dumper during tests
Diffstat (limited to 'mitmproxy/tools/web/master.py')
-rw-r--r--mitmproxy/tools/web/master.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py
index 68a3db70..e6c15a0a 100644
--- a/mitmproxy/tools/web/master.py
+++ b/mitmproxy/tools/web/master.py
@@ -15,7 +15,7 @@ from mitmproxy.tools.web import app
class WebMaster(master.Master):
- def __init__(self, options, server):
+ def __init__(self, options, server, with_termlog=True):
super().__init__(options, server)
self.view = view.View()
self.view.sig_view_add.connect(self._sig_view_add)
@@ -34,8 +34,9 @@ class WebMaster(master.Master):
intercept.Intercept(),
self.view,
self.events,
- termlog.TermLog(),
)
+ if with_termlog:
+ self.addons.add(termlog.TermLog())
self.app = app.Application(
self, self.options.wdebug
)