notifyReleaseStages prevents exception logging to console
See original GitHub issueIf I use notifyReleaseStages
to prevent sending reports when we’re running in dev, it also swallows the errors in the console. All I see is:
bugsnag.js:1581 Loaded!
bugsnag.js:281 Report not sent due to releaseStage/notifyReleaseStages configuration
For now we’re reporting all exceptions, even in dev as a workaround, and we’re overloading our quota. Could really use a fix for this one.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Report not sent due to releaseStage/notifyReleaseStages ...
It sounds like you want to set the release stage so you should be using releaseStage not notifyReleaseStages . If you have any...
Read more >Bugsnag docs › Platforms › JavaScript › Configuration options
Discover configuration options for your Bugsnag JavaScript integration. Customize your Bugsnag setup to meet your application's unique needs.
Read more >try...catch - JavaScript - MDN Web Docs - Mozilla
The code in the try block is executed first, and if it throws an exception, the code in the catch block will be...
Read more >Node.js Error Handling Best Practices: Ship With Confidence
The description is the human-readable string of your error object. It's what pops up in your console when something goes awry. Second, error...
Read more >A mostly complete guide to error handling in JavaScript.
In addition to seeing this stack trace in the browser's console, you can access it on the stack property of the error object....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wouldnt use notifyReleaseStages in that case. You can just return false in dev yourself from the callback
[Disclosure: I work with the OP, but have run into this problem independent of his report here]
The proposed workaround in the previous comment is not an adequate solution. Not only is it overly verbose, it drops essential information. E.g. In the sample below note how the first four lines of the original log output, that describe where the syntax error actually is, are not included in the workaround output.
At the risk of being overly dramatic, this sort of issue - where bug reporting software gets “in between” me and the code I’m trying to debug, quickly becomes a showstopper issue. Do with that what you will.
Original console output:
“Workaround” output: