summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/worker.js b/worker.js
index f0367ec..691e57b 100644
--- a/worker.js
+++ b/worker.js
@@ -15,7 +15,6 @@ const amqp = require("amqplib"),
fs = Promise.promisifyAll(require("fs")),
winston = require("winston"),
loggly = require("winston-loggly-bulk"),
- datadog = require("winston-datadog"),
sleep = require("sleep-promise"),
Seq = require("sequelize");
@@ -24,7 +23,6 @@ const RABBITMQ_URI = process.env.RABBITMQ_URI,
QUEUE = process.env.QUEUE || "crunch",
SCRIPT = process.env.SCRIPT || "crunch_global.sql",
LOGGLY_TOKEN = process.env.LOGGLY_TOKEN,
- DATADOG_TOKEN = process.env.DATADOG_TOKEN,
// size of connection pool
MAXCONNS = parseInt(process.env.MAXCONNS) || 3,
// number of participants to calculate at once
@@ -53,12 +51,6 @@ if (LOGGLY_TOKEN)
json: true
});
-// datadog integration
-if (DATADOG_TOKEN)
- logger.add(new datadog({
- api_key: DATADOG_TOKEN
- }), null, true);
-
amqp.connect(RABBITMQ_URI).then(async (rabbit) => {
// connect to rabbit & db