Skip to content

Commit 9a659c8

Browse files
authored
support non-numeric log-level defaults (#320)
1 parent b1de301 commit 9a659c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

colcon_core/command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ def _main(*, command_name, argv):
139139
context = CommandContext(command_name=command_name, args=args)
140140

141141
if args.log_level:
142-
colcon_logger.setLevel(args.log_level)
142+
# the value might be provided externally and needs to be checked again
143+
colcon_logger.setLevel(get_numeric_log_level(args.log_level))
143144

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

0 commit comments

Comments
 (0)