rollbar / rollbar.js

Error tracking and logging from Javascript to Rollbar
https://docs.rollbar.com/docs/javascript
MIT License
571 stars 213 forks source link

enabled configuration option is ignored #1122

Closed 94marianag closed 1 year ago

94marianag commented 1 year ago

I'm using version 2.26.2, and when a I set the variable enabled to false, it still sends data to rollbar const Rollbar = require('rollbar');

const rollbar = new Rollbar({ accessToken: process.env.ROLLBAR_ACCESS_TOKEN, captureUncaught: true, captureUnhandledRejections: true, payload: { code_version: '1.0.0', } });

rollbar.configure({ enabled: process.env.ROLLBAR_SERVICE_ENABLED, });

module.exports=rollbar;