Skip to content

Commit

Permalink
support non-numeric log-level defaults (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Mar 12, 2020
1 parent b1de301 commit 9a659c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colcon_core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def _main(*, command_name, argv):
context = CommandContext(command_name=command_name, args=args)

if args.log_level:
colcon_logger.setLevel(args.log_level)
# the value might be provided externally and needs to be checked again
colcon_logger.setLevel(get_numeric_log_level(args.log_level))

colcon_logger.debug(
'Parsed command line arguments: {args}'.format_map(locals()))
Expand Down

0 comments on commit 9a659c8

Please sign in to comment.