function onRedisError(err) {
  logger.error(err);
  if (clientReady === true) {
    datadog.event('Redis error', err.message, {
      alert_type: 'error'
    });
    downTime = Date.now();
  }
  clientReady = false;
}
/**
 * Logs the error and sets a flag to denote redis client is not ready
 *
 * @param {Error} err
 */
Logs the error and sets a flag to denote redis client is not ready
@param {Error} err
Logs the error and sets a flag to denote redis client is not ready @param { Error } err
function onRedisError(err) {
  logger.error(err);
  if (clientReady === true) {
    datadog.event('Redis error', err.message, {
      alert_type: 'error'
    });
    downTime = Date.now();
  }
  clientReady = false;
}
function onRedisError ( err ) { logger . error ( err ) ; if ( clientReady === true ) { datadog . event ( 'Redis error' , err . message , { alert_type : 'error' } ) ; downTime = Date . now ( ) ; } clientReady = false ; }
Logs the error and sets a flag to denote redis client is not ready
 @param {Error} err
Logs the error and sets a flag to denote redis client is not ready @param { Error } err