Skip to content

Commit

Permalink
fix: include active/loaded rule count in list mode output
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 3, 2019
1 parent 5229ada commit 05f3f2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Expand Up @@ -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;
}

Expand Down

0 comments on commit 05f3f2f

Please sign in to comment.