diff options
author | Matthew Shao <me@matshao.com> | 2017-07-28 20:33:07 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-07-28 20:33:07 +0800 |
commit | ad04f4ea688a2f206d26095b48480c4b00d1e9e3 (patch) | |
tree | 696d88cd4eb1d49e081ef6873c1d79648654a44c /mitmproxy/options.py | |
parent | 35d16a4bcaddd7c249dc44b94be60e34ed476415 (diff) | |
download | mitmproxy-ad04f4ea688a2f206d26095b48480c4b00d1e9e3.tar.gz mitmproxy-ad04f4ea688a2f206d26095b48480c4b00d1e9e3.tar.bz2 mitmproxy-ad04f4ea688a2f206d26095b48480c4b00d1e9e3.zip |
Improve verbosity options.
Diffstat (limited to 'mitmproxy/options.py')
-rw-r--r-- | mitmproxy/options.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py index 954db7e8..a3042008 100644 --- a/mitmproxy/options.py +++ b/mitmproxy/options.py @@ -27,6 +27,14 @@ console_layouts = [ "horizontal", ] +log_verbosity = [ + "error", + "warn", + "info", + "alert", + "debug", +] + APP_HOST = "mitm.it" APP_PORT = 80 CA_DIR = "~/.mitmproxy" @@ -162,8 +170,9 @@ class Options(optmanager.OptManager): """ ) self.add_option( - "verbosity", int, 2, - "Log verbosity." + "verbosity", str, 'info', + "Log verbosity.", + choices=log_verbosity ) self.add_option( "default_contentview", str, "auto", |