aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/options.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-02-26 08:56:23 +1300
committerAldo Cortesi <aldo@corte.si>2018-02-26 09:02:24 +1300
commit2fb85553cc57e9559ed6ea747b3043b6f87bf36e (patch)
tree22785f82fa11899117712b3fa489f7abb091f043 /mitmproxy/options.py
parent77e5d823e0e7cb2032e639de315d49bcad1945cc (diff)
downloadmitmproxy-2fb85553cc57e9559ed6ea747b3043b6f87bf36e.tar.gz
mitmproxy-2fb85553cc57e9559ed6ea747b3043b6f87bf36e.tar.bz2
mitmproxy-2fb85553cc57e9559ed6ea747b3043b6f87bf36e.zip
Revamp verbosity options
Split verbosity into termlog_verbosity and console_eventlog_verbosity. This patch also removes printing to console if there are unknown options in the command-line. Options now live in separate addons, so having uknown options remaining is common and expected. We definitely shoould have some other way for users to see what was ignored so they can catch typos and the like, but that's a different patch.
Diffstat (limited to 'mitmproxy/options.py')
-rw-r--r--mitmproxy/options.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index e9e8a563..0ada5306 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -3,13 +3,6 @@ from typing import Optional, Sequence
from mitmproxy import optmanager
from mitmproxy.net import tls
-log_verbosity = [
- "error",
- "warn",
- "info",
- "alert",
- "debug",
-]
CA_DIR = "~/.mitmproxy"
LISTEN_PORT = 8080
@@ -51,7 +44,6 @@ class Options(optmanager.OptManager):
# FIXME: Options that must be migrated to addons, but are complicated
# because they're used by more than one addon, or because they're
# embedded in the core code somehow.
- verbosity = None # type: str
view_filter = None # type: Optional[str]
def __init__(self, **kwargs) -> None:
@@ -64,11 +56,6 @@ class Options(optmanager.OptManager):
"showhost", bool, False,
"Use the Host header to construct URLs for display."
)
- self.add_option(
- "verbosity", str, 'info',
- "Log verbosity.",
- choices=log_verbosity
- )
# Proxy options
self.add_option(