Skip to content

Commit 5b38095

Browse files
Improve sentry error reporting integration
1 parent 3e1cd6b commit 5b38095

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
"body-parser": "^1.15.2",
2525
"bunyan": "^1.8.1",
2626
"express": "^4.14.0",
27+
"fs-extra": "^5.0.0",
2728
"joi": "^13.1.2",
2829
"lodash": "^4.15.0",
2930
"mkdirp": "^0.5.1",
3031
"object-resolve-path": "^1.1.1",
3132
"randomstring": "^1.1.5",
32-
"raven": "^2.3.0",
33+
"raven": "^2.6.1",
3334
"request": "^2.85.0",
34-
"tar": "^4.4.1",
35-
"fs-extra": "^5.0.0",
36-
"request-promise-native": "^1.0.5"
35+
"request-promise-native": "^1.0.5",
36+
"tar": "^4.4.1"
3737
},
3838
"devDependencies": {
3939
"eslint": "^4.17.0",

src/index.js

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

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

10-
Raven.context(function () {
10+
Raven.context(function() {
1111
let server = new ElastalertServer();
1212
server.start();
1313
});

0 commit comments

Comments
 (0)