Print enabled debug categories

This commit is contained in:
Charles Gould 2020-05-15 17:54:26 -05:00 committed by Johannes Altmanninger
parent cc039e29ce
commit a7aca37f9b

View File

@ -302,6 +302,11 @@ static int fish_parse_opt(int argc, char **argv, fish_cmd_opts_t *opts) {
} else {
activate_flog_categories_by_pattern(str2wcstring(optarg));
}
for (auto cat : get_flog_categories()) {
if (cat->enabled) {
printf("Debug enabled for category: %ls\n", cat->name);
}
}
break;
}
case 'o': {