lib/index.js
function () {
					logger.info('Records sent to Tone Analyzer: ' + amaStats.processed_record_count);
					// these records could be fetched using other API calls
					logger.info('Records missing (no comment text available): ' + amaStats.missing_record_count);
					logger.info('Maximum processed comment thread depth: ' + amaStats.max_processed_level);
					if(amaStats.parser_warnings > 0) {
						// Potential issue with parser logic. If a non-zero value is reported, the base tree should be reviewed.
						logger.warn('Potential base tree parsing issues: ' + amaStats.parser_warnings);	
					}
					
					logger.debug('AMA thread statistics: ' + util.inspect(amaStats.level_stats,3));

				}
function () {
					logger.info('Records sent to Tone Analyzer: ' + amaStats.processed_record_count);
					// these records could be fetched using other API calls
					logger.info('Records missing (no comment text available): ' + amaStats.missing_record_count);
					logger.info('Maximum processed comment thread depth: ' + amaStats.max_processed_level);
					if(amaStats.parser_warnings > 0) {
						// Potential issue with parser logic. If a non-zero value is reported, the base tree should be reviewed.
						logger.warn('Potential base tree parsing issues: ' + amaStats.parser_warnings);	
					}
					
					logger.debug('AMA thread statistics: ' + util.inspect(amaStats.level_stats,3));

				}
function ( ) { logger . info ( 'Records sent to Tone Analyzer: ' + amaStats . processed_record_count ) ; // these records could be fetched using other API calls logger . info ( 'Records missing (no comment text available): ' + amaStats . missing_record_count ) ; logger . info ( 'Maximum processed comment thread depth: ' + amaStats . max_processed_level ) ; if ( amaStats . parser_warnings > 0 ) { // Potential issue with parser logic. If a non-zero value is reported, the base tree should be reviewed. logger . warn ( 'Potential base tree parsing issues: ' + amaStats . parser_warnings ) ; } logger . debug ( 'AMA thread statistics: ' + util . inspect ( amaStats . level_stats , 3 ) ) ; }
local helper function; displays processing statistics`
local helper function ; displays processing statistics