Skip to content

Commit

Permalink
Do not default the severity to error
Browse files Browse the repository at this point in the history
  • Loading branch information
JWA111 committed Sep 26, 2019
1 parent 5221a21 commit b465ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const setup = (bugsnagClient, logger = paperplane.logger) => {
}

if (notifiable(err)) {
const options = mergeDeepRight({ metaData, severity: 'error' }, opts)
const options = mergeDeepRight({ metaData }, opts)
bugsnagClient.notify(err, options)
}
}
Expand Down
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ describe('paperplane-bugsnag + bugsnag.notify', () => {
query: { id: 'guy' },
url: 'https://paperplane-bugsnag.zone/api/users?id=guy'
}
},
severity: 'error'
}
}
])
})
Expand Down

0 comments on commit b465ab3

Please sign in to comment.