From 9a659c8ea09164f09c476f2fd46b006893e29c8f Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 12 Mar 2020 13:40:10 -0700 Subject: [PATCH] support non-numeric log-level defaults (#320) --- colcon_core/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/colcon_core/command.py b/colcon_core/command.py index 9e49f2a0..5fc7b0a7 100644 --- a/colcon_core/command.py +++ b/colcon_core/command.py @@ -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()))