mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2025-02-03 20:12:48 +00:00
adjust command line docs, fix log typo
This commit is contained in:
parent
d883d93566
commit
843b2e28bc
@ -275,8 +275,8 @@ def common_options(parser):
|
||||
)
|
||||
parser.add_argument(
|
||||
"-v",
|
||||
action="count", dest="verbose", default=1,
|
||||
help="Increase verbosity. Can be passed multiple times."
|
||||
action="store_const", dest="verbose", default=1, const=2,
|
||||
help="Increase event log verbosity."
|
||||
)
|
||||
parser.add_argument(
|
||||
"-w",
|
||||
|
@ -1002,7 +1002,7 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
|
||||
def add_event(self, e, level="info"):
|
||||
needed = dict(error=1, info=1, debug=2).get(level, 1)
|
||||
if self.o.verbosity < needed:
|
||||
if self.options.verbosity < needed:
|
||||
return
|
||||
|
||||
if level == "error":
|
||||
|
Loading…
x
Reference in New Issue
Block a user