In development without a bugsnag API key, I expect to only see an single error message printed to the console when a single error occurs.
Observed behavior
Duplicate error messages are printed to the console.
...
Bugsnag: apiKey not being set prevents the following error from being sent to Bugsnag.
https://docs.bugsnag.com/platforms/nodejs/other/#basic-configuration
ReferenceError: idontexist is not defined
at Object.notifications (/Users/jkerr/Projects/looky/server/src/interfaces/slack/events-outbound.js:200:5)
at Promise.map.notification (/Users/jkerr/Projects/looky/server/src/interfaces/index.js:14:34)
at tryCatcher (/Users/jkerr/Projects/looky/server/node_modules/bluebird/js/release/util.js:16:23)
at MappingPromiseArray._promiseFulfilled
Bugsnag: ReferenceError: idontexist is not defined
at Object.notifications (/Users/jkerr/Projects/looky/server/src/interfaces/slack/events-outbound.js:200:5)
at Promise.map.notification (/Users/jkerr/Projects/looky/server/src/interfaces/index.js:14:34)
at tryCatcher (/Users/jkerr/Projects/looky/server/node_modules/bluebird/js/release/util.js:16:23)
at MappingPromiseArray._promiseFulfilled
...
Steps to reproduce
Add bugsnag to an express app following the instructions on the bugsnag website.
Expected behavior
In development without a bugsnag API key, I expect to only see an single error message printed to the console when a single error occurs.
Observed behavior
Duplicate error messages are printed to the console.
Steps to reproduce
null
for theVersion
2.0.1
Additional information
The error first gets printed here: https://github.com/bugsnag/bugsnag-node/blob/master/lib/bugsnag.js#L72
Then it gets printed again here: https://github.com/bugsnag/bugsnag-node/blob/master/lib/configuration.js#L39