You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if enabled is true with verbose: true
=> Error is shown with trace
if enabled is true with verbose: false
=> silent exit no trace
if enabled is false with verbose: true
==> Wrong error is shown :
Error: Rollbar is not enabled
at Notifier.log
at Rollbar._log
IMHO problems come from this test, rollbar should re-throw error when it s not enabled.
Or maybe when enabled is false captureUncaught should be automatically false
if enabled is false with captureUncaught: false
==> ok
tested on Node.js 16.x && 18.x
rollbar 2.26.1 (NPM module)
The text was updated successfully, but these errors were encountered:
francois06
changed the title
NodeJS - silence exit with enabled false and captureUncaught true
NodeJS - silence exit when enabled is false and captureUncaught is true
Mar 24, 2023
First of all, thank you for this amazing library!
I have found an issue with Node.JS when an error occurs in development mode & when rollbar is not enabled.
Use case :
server.js
app.js
server.js require app.js and then I run
node server.js
Now I add rollbar with enabled: false
server.js
node server.js
Other tests :
if enabled is true with verbose: true
=> Error is shown with trace
if enabled is true with verbose: false
=> silent exit no trace
if enabled is false with verbose: true
==> Wrong error is shown :
IMHO problems come from this test, rollbar should re-throw error when it s not enabled.
Or maybe when enabled is false captureUncaught should be automatically false
if enabled is false with captureUncaught: false
==> ok
My current trick to make this work :
I hope my explanations are clear.
Environment:
tested on Node.js 16.x && 18.x
rollbar 2.26.1 (NPM module)
The text was updated successfully, but these errors were encountered: