Skip to content

Commit df4c790

Browse files
Use SENTRY_DSN env
1 parent 5b38095 commit df4c790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import ElastalertServer from './elastalert_server';
22

3-
if (process.env.SENTRY_ELASTALERT !== undefined) {
3+
if (process.env.SENTRY_DSN !== undefined) {
44
var Raven = require('raven');
5-
Raven.config(process.env.SENTRY_ELASTALERT, {
5+
Raven.config(process.env.SENTRY_DSN, {
66
captureUnhandledRejections: true
77
}).install();
88
console.log('Sentry logging enabled for Elastalert');

0 commit comments

Comments
 (0)