stream-consumer.js
function logFinalResults(batch, finalError, context) {
  const summary = batch ? batch.summarizeFinalResults(finalError) : undefined;
  context.info(`Summarized final batch results: ${JSON.stringify(summary)}`);
}
function logFinalResults(batch, finalError, context) {
  const summary = batch ? batch.summarizeFinalResults(finalError) : undefined;
  context.info(`Summarized final batch results: ${JSON.stringify(summary)}`);
}
function logFinalResults ( batch , finalError , context ) { const summary = batch ? batch . summarizeFinalResults ( finalError ) : undefined ; context . info ( ` ${ JSON . stringify ( summary ) } ` ) ; }
Summarizes and logs the final results of the given batch - converting lists of messages and records into counts.
@param {Batch} batch - the batch that was processed
@param {Error|undefined} [finalError] - the final error with which the batch was terminated (if unsuccessful)
@param {StreamConsumerContext} context - the context to use
Summarizes and logs the final results of the given batch - converting lists of messages and records into counts .