From 0ffdda240ad6700c1d508d48b87154250528668e Mon Sep 17 00:00:00 2001 From: Baraky Date: Wed, 2 Sep 2020 11:54:42 -0300 Subject: [PATCH] Logging username and email on rollbar --- lib/am-error.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/am-error.js b/lib/am-error.js index 4b475bb..55d8555 100644 --- a/lib/am-error.js +++ b/lib/am-error.js @@ -19,7 +19,9 @@ class AMError { accessToken: config.rollbar.accessToken, environment: 'api_' + process.env.NODE_ENV, handleUncaughtExceptions: true, - handleUnhandledRejections: true + handleUnhandledRejections: true, + captureEmail: true, + captureUsername: true }); rollbar.log('API initialized'); app.use(rollbar.errorHandler()); diff --git a/package.json b/package.json index 869a2be..fabae08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@app-masters/node-lib", - "version": "2.1.84", + "version": "2.1.85", "description": "It's very useful, but just for us at App Masters. To you it must be a code mess and useless.", "main": "./index.js", "scripts": {