From 05f3f2f315bd77f728be92bbde3922ebd26342a0 Mon Sep 17 00:00:00 2001 From: ssube Date: Sat, 2 Nov 2019 09:45:01 -0500 Subject: [PATCH] fix: include active/loaded rule count in list mode output --- src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 002cb0b..b3616b1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,14 @@ export async function main(argv: Array): Promise { 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; }