Skip to content
Open
Changes from all 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: 5 additions & 1 deletion bin/tofu
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,12 @@ def main():
cmd_parser.set_defaults(_func=func)

args = config.parse_known_args(parser, subparser=True)
try:
log_level = logging.DEBUG if args.verbose else logging.INFO
except AttributeError:
parser.print_usage()
return

log_level = logging.DEBUG if args.verbose else logging.INFO
LOG.setLevel(log_level)

stream_handler = logging.StreamHandler(sys.stdout)
Expand Down