Skip to content

Commit 09c2bba

Browse files
Use env variable to save Sentry DSN
1 parent d8a9d9f commit 09c2bba

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.BITSENSOR_SENTRY_ENABLED !== 'false') {
3+
if (process.env.BITSENSOR_SENTRY_ENABLED !== 'false' && process.env.BITSENSOR_SENTRY_DSN !== undefined) {
44
var Raven = require('raven');
5-
Raven.config('http://527ee316013644b387a47f713335b085:[email protected]:9000/5').install();
5+
Raven.config(process.env.BITSENSOR_SENTRY_DSN).install();
66

77
Raven.context(function () {
88
let server = new ElastalertServer();

0 commit comments

Comments
 (0)