Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bandit/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def main():
"--quiet",
"--silent",
dest="quiet",
action="store_true",
action="count",
help="only show output in the case of an error",
)
parser.add_argument(
Expand Down Expand Up @@ -602,7 +602,9 @@ def main():
log_format = b_conf.get_option("log_format")
_init_logger(log_level=logging.DEBUG, log_format=log_format)

if args.quiet:
if args.quiet > 1:
_init_logger(log_level=logging.ERROR)
elif args.quiet > 0:
_init_logger(log_level=logging.WARN)

try:
Expand Down