mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
always show error messages
This commit is contained in:
parent
4c2e87638a
commit
c7a96b2fb1
@ -1050,7 +1050,7 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
self.eventlist[:] = []
|
self.eventlist[:] = []
|
||||||
|
|
||||||
def add_event(self, e, level="info"):
|
def add_event(self, e, level="info"):
|
||||||
needed = dict(error=1, info=1, debug=2).get(level, 1)
|
needed = dict(error=0, info=1, debug=2).get(level, 1)
|
||||||
if self.options.verbosity < needed:
|
if self.options.verbosity < needed:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ class DumpMaster(flow.FlowMaster):
|
|||||||
return flows
|
return flows
|
||||||
|
|
||||||
def add_event(self, e, level="info"):
|
def add_event(self, e, level="info"):
|
||||||
needed = dict(error=1, info=1, debug=2).get(level, 1)
|
needed = dict(error=0, info=1, debug=2).get(level, 1)
|
||||||
if self.o.verbosity >= needed:
|
if self.o.verbosity >= needed:
|
||||||
print >> self.outfile, e
|
print >> self.outfile, e
|
||||||
self.outfile.flush()
|
self.outfile.flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user