1
0
Fork 0

fix: include active/loaded rule count in list mode output

This commit is contained in:
ssube 2019-11-02 09:45:01 -05:00 committed by Sean Sube
parent 5229ada847
commit 05f3f2f315
1 changed files with 8 additions and 1 deletions

View File

@ -42,7 +42,14 @@ export async function main(argv: Array<string>): Promise<number> {
const activeRules = await resolveRules(loadedRules, ruleSelector);
if (mode === MODE.list) {
logger.info({ activeRules, loadedRules, ruleSelector, ruleSources }, 'listing active rules');
logger.info({
activeCount: activeRules.length,
activeRules,
loadedCount: loadedRules.length,
loadedRules,
ruleSelector,
ruleSources,
}, 'listing active rules');
return STATUS_SUCCESS;
}