We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aab06c commit c0d9a04Copy full SHA for c0d9a04
src/index.js
@@ -2,7 +2,10 @@ import ElastalertServer from './elastalert_server';
2
3
if (process.env.BITSENSOR_SENTRY_ENABLED !== 'false' && process.env.BITSENSOR_SENTRY_DSN !== undefined) {
4
var Raven = require('raven');
5
- Raven.config(process.env.BITSENSOR_SENTRY_DSN).install(console.log('Sentry logging enabled for Elastalert'));
+ Raven.config(process.env.BITSENSOR_SENTRY_DSN, {
6
+ captureUnhandledRejections: true
7
+ }).install();
8
+ console.log('Sentry logging enabled for Elastalert');
9
10
Raven.context(function () {
11
let server = new ElastalertServer();
0 commit comments