Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
options.onRavenError : function (e) {
// do not warn() on 429 errors
if (e.message.indexOf('429') >= 0) {
return;
}
winston.warn('Raven failed to upload to Sentry: ', {
message: e.message,
stack: e.stack,
reason: e.reason,
statusCode: e.statusCode
});
};