src/logger.js
function unhandledRejectionHandler(error) {
    let reasonString = error.message || error.msg || JSON.stringify(error);

    module.exports.crit(`Unhandled Promise Rejection - reason: [${reasonString}]`);
    module.exports.crit(error.stack.toString());
}
function unhandledRejectionHandler(error) {
    let reasonString = error.message || error.msg || JSON.stringify(error);

    module.exports.crit(`Unhandled Promise Rejection - reason: [${reasonString}]`);
    module.exports.crit(error.stack.toString());
}
function unhandledRejectionHandler ( error ) { let reasonString = error . message || error . msg || JSON . stringify ( error ) ; module . exports . crit ( ` ${ reasonString } ` ) ; module . exports . crit ( error . stack . toString ( ) ) ; }
Handler for the unhandledRejection event. Will print out a warning message using the log system.
Handler for the unhandledRejection event . Will print out a warning message using the log system .