getsentry/raven-node — pull request #98 by mojodna (2014-11-15 02:53:53+00:00)
Title: Disabled clients should trigger callbacks

Without this, boilerplate like...

```javascript
raven.patchGlobal(function(success, err) {
console.error(err.stack);
process.exit(1);
});
```

...won't fire when the underlying client is disabled (i.e. no `SENTRY_DSN`). However, the `uncaughtException` handler will still be registered, effectively swallowing errors.

This patch causes the client to pretend to have logged the request, allowing `patchGlobal` to trigger custom callbacks as would happen if it were enabled.