Skip to content

Commit

Permalink
Logging username and email on rollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbaraky committed Sep 2, 2020
1 parent 914c4e1 commit 0ffdda2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/am-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 0ffdda2

Please sign in to comment.