Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Make --verbose default
Browse files Browse the repository at this point in the history
Verbose output is the generally useful output, so make it the default.
To show only interesting events and not full connection details use the
-q/--quiet option.

Fixes part of #22
  • Loading branch information
chadbrubaker committed Nov 14, 2014
1 parent 2e27cb0 commit f9aaf15
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions nogotofail/mitm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ def parse_args():
# it show up in --help.
parser.add_argument(
"-c", "--config", help="Configuration file", metavar="FILE")
parser.add_argument(
"-v", "--verbose", help="verbose output", action="store_true",
default=False)
parser.add_argument(
"-p", "--probability", help="probably of attacking a SSL connection",
action="store", type=float, default=0.5)
Expand All @@ -189,7 +186,7 @@ def parse_args():
"-t", "--trafficfile", help="Traffic output file", action="store")
parser.add_argument(
"-q", "--quiet",
help="Quiet output. Only prints MITM success messages",
help="Quiet output. Only prints important messages.",
action="store_true", default=False)
parser.add_argument(
"--port", help="Port to bind the connection to", action="store",
Expand Down Expand Up @@ -236,12 +233,10 @@ def setup_logging(args):
handler.setFormatter(LOG_FORMAT)
if args.debug:
handler.setLevel(logging.DEBUG)
elif args.verbose:
handler.setLevel(logging.INFO)
elif args.quiet:
handler.setLevel(logging.CRITICAL)
else:
handler.setLevel(logging.WARNING)
else:
handler.setLevel(logging.INFO)
logger.addHandler(handler)

if args.logfile:
Expand Down

0 comments on commit f9aaf15

Please sign in to comment.