diff options
author | Clemens <cle1000.cb@gmail.com> | 2016-08-09 19:49:36 +0200 |
---|---|---|
committer | Clemens <cle1000.cb@gmail.com> | 2016-08-09 19:49:36 +0200 |
commit | b27e456ce2150d638b4eef73703da8a30722d392 (patch) | |
tree | 2ba82b15f1bdf22f12b7d97e726dcbd19374e9cf /mitmproxy/dump.py | |
parent | 78bd99f97c36ba24bbab389350eb8e80ba16738f (diff) | |
parent | dcfa7027aed5a8d4aa80aff67fc299298659fb1b (diff) | |
download | mitmproxy-b27e456ce2150d638b4eef73703da8a30722d392.tar.gz mitmproxy-b27e456ce2150d638b4eef73703da8a30722d392.tar.bz2 mitmproxy-b27e456ce2150d638b4eef73703da8a30722d392.zip |
merge with master
Diffstat (limited to 'mitmproxy/dump.py')
-rw-r--r-- | mitmproxy/dump.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index 83f44d87..51124224 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -104,7 +104,7 @@ class DumpMaster(flow.FlowMaster): click.secho( e, file=self.options.tfile, - fg="red" if level == "error" else None, + fg=dict(error="red", warn="yellow").get(level), dim=(level == "debug"), err=(level == "error") ) @@ -118,5 +118,6 @@ class DumpMaster(flow.FlowMaster): def run(self): # pragma: no cover if self.options.rfile and not self.options.keepserving: + self.addons.done() return super(DumpMaster, self).run() |