diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-07-23 11:50:30 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-07-23 11:50:30 +1200 |
commit | 689f5f0d1f5cc8125df4672ed27fc64c06b2ecde (patch) | |
tree | 738e730bcf4da46d323d712f75ea4725f52c1c44 /libmproxy | |
parent | 47e16955122a4ae99f2f74b34d3dd42490687f2b (diff) | |
download | mitmproxy-689f5f0d1f5cc8125df4672ed27fc64c06b2ecde.tar.gz mitmproxy-689f5f0d1f5cc8125df4672ed27fc64c06b2ecde.tar.bz2 mitmproxy-689f5f0d1f5cc8125df4672ed27fc64c06b2ecde.zip |
Don't turn off output if -v flag is passed more than twice.
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/dump.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 972b9f2f..e547d78d 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -172,7 +172,7 @@ class DumpMaster(flow.FlowMaster): print >> self.outfile print >> self.outfile, result print >> self.outfile, "\n" - elif self.o.verbosity == 3: + elif self.o.verbosity >= 3: print >> self.outfile, str_request(f.request) print >> self.outfile, self.indent(4, f.request.headers) if utils.isBin(f.request.content): @@ -182,6 +182,7 @@ class DumpMaster(flow.FlowMaster): print >> self.outfile print >> self.outfile, result print >> self.outfile, "\n" + self.state.delete_flow(f) if self.o.wfile: self.fwriter.add(f) |