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.
2 parents a60877c + c0d9a04 commit f48714dCopy full SHA for f48714d
src/index.js
@@ -1,8 +1,11 @@
1
import ElastalertServer from './elastalert_server';
2
3
-if (process.env.BITSENSOR_SENTRY_ENABLED !== 'false') {
+if (process.env.BITSENSOR_SENTRY_ENABLED !== 'false' && process.env.BITSENSOR_SENTRY_DSN !== undefined) {
4
var Raven = require('raven');
5
- Raven.config('http://527ee316013644b387a47f713335b085:[email protected]:9000/5').install();
+ 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