diff options
author | Maximilian Hils <git@maximilianhils.com> | 2018-02-22 00:20:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 00:20:34 +0100 |
commit | 4ce8d6ca37b8ce58867d5d2ba3987b1498a498c6 (patch) | |
tree | ae466d7e00769b9bbb65caa7360a9e7281da94f0 | |
parent | 2edaca9141d9a5721b417d08b2908fb54b857144 (diff) | |
download | mitmproxy-4ce8d6ca37b8ce58867d5d2ba3987b1498a498c6.tar.gz mitmproxy-4ce8d6ca37b8ce58867d5d2ba3987b1498a498c6.tar.bz2 mitmproxy-4ce8d6ca37b8ce58867d5d2ba3987b1498a498c6.zip |
don't log for --commands or --options.
-rw-r--r-- | mitmproxy/tools/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/tools/main.py b/mitmproxy/tools/main.py index 290431ce..67139ead 100644 --- a/mitmproxy/tools/main.py +++ b/mitmproxy/tools/main.py @@ -43,7 +43,9 @@ def process_options(parser, opts, args): if args.version: print(debug.dump_system_info()) sys.exit(0) - if args.quiet: + if args.quiet or args.options or args.commands: + # also reduce log verbosity if --options or --commands is passed, + # we don't want log messages from regular startup then. args.verbosity = 'error' args.flow_detail = 0 if args.verbose: |