File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,12 @@ def main(argv=None):
476
476
description = '{}.' .format (__desc__ ),
477
477
formatter_class = SubcommandHelpFormatter )
478
478
479
+ parser .add_argument (
480
+ '--debug' ,
481
+ help = "Turn on debug logs for the specified modules" ,
482
+ dest = "debug_loggers" ,
483
+ action = 'append' ,
484
+ default = [])
479
485
parser .add_argument (
480
486
'--trace' ,
481
487
help = "Trace execution" ,
@@ -547,6 +553,8 @@ def main(argv=None):
547
553
# subcommand
548
554
args = parser .parse_args (argv or sys .argv [1 :] or ["help" ])
549
555
logging .basicConfig (level = args .loglevel or logging .WARNING )
556
+ for logger_name in args .debug_loggers :
557
+ logging .getLogger (logger_name ).setLevel (logging .DEBUG )
550
558
config = compdb .config .LazyTypedConfig (config_schema )
551
559
552
560
if args .config_overrides :
You can’t perform that action at this time.
0 commit comments