mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: filter out zero counts from skip reasons in logs
#release-minor
This commit is contained in:
@@ -497,10 +497,12 @@ export class AIOStreams {
|
||||
'╔═══════════════════════╤════════════╗',
|
||||
'║ Skip Reason │ Count ║',
|
||||
'╟───────────────────────┼────────────╢',
|
||||
...Object.entries(skipReasons).map(
|
||||
([reason, count]) =>
|
||||
`║ ${reason.padEnd(21)} │ ${String(count).padStart(10)} ║`
|
||||
),
|
||||
...Object.entries(skipReasons)
|
||||
.filter(([reason, count]) => count > 0)
|
||||
.map(
|
||||
([reason, count]) =>
|
||||
`║ ${reason.padEnd(21)} │ ${String(count).padStart(10)} ║`
|
||||
),
|
||||
'╟───────────────────────┼────────────╢',
|
||||
`║ Total Skipped │ ${String(totalSkipped).padStart(10)} ║`,
|
||||
'╚═══════════════════════╧════════════╝',
|
||||
|
||||
Reference in New Issue
Block a user