chore: log error count in final result log
This commit is contained in:
parent
4078f0c404
commit
2421913587
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ export class StreamResolver {
|
|||
return a.label.localeCompare(b.label);
|
||||
});
|
||||
|
||||
this.logger.info(`Return ${urlResults.length} streams`, ctx);
|
||||
const errorCount = urlResults.reduce((count, urlResult) => urlResult.error ? count + 1 : count, 0);
|
||||
this.logger.info(`Got ${urlResults.length} url results, including ${errorCount} errors`, ctx);
|
||||
|
||||
streams.push(
|
||||
...urlResults.filter(urlResult => !urlResult.error || showErrors(ctx.config))
|
||||
|
|
|
|||
Loading…
Reference in a new issue