nl_tokens: set by initAPI
pl_tokens: function errorHandler ( err ) { // eslint-disable-next-line no-console const logErr = logger ? logger . error . bind ( logger ) : console . log ; if ( cluster . isMaster ) { logErr ( ` ${ process . pid } ` ) ; } else { logErr ( ` ${ cluster . worker . id } ${ process . pid } ` ) ; } if ( err . message ) { logErr ( err . message ) ; } else { logErr ( err ) ; } if ( err . stack ) { logErr ( err . stack ) ; } // log saving to disk is async, using hack to give time to flush setTimeout ( ( ) => { process . <mask> ( - 1 ) ; } , 600 ) ; }