diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-01-12 19:49:06 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-01-12 19:49:06 +0100 |
| commit | a561bb7bf1817e32183d7990494f77f03f8d512a (patch) | |
| tree | ef265fcb2fc317f4337f088443ad3fe7d9fb02e3 /worker.js | |
| parent | 24b2c4cdb804899e2619437813f2bb29f7c23d04 (diff) | |
| download | processor-a561bb7bf1817e32183d7990494f77f03f8d512a.tar.gz processor-a561bb7bf1817e32183d7990494f77f03f8d512a.zip | |
Revert "add datadog"
This reverts commit a2ffb39e7ba6b83fd778bccf802f9148afd3b4ba.
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -12,7 +12,6 @@ const amqp = require("amqplib"), Promise = require("bluebird"), uuidV4 = require("uuid/v4"), winston = require("winston"), - datadog = require("winston-datadog"), loggly = require("winston-loggly-bulk"), _snakecase = require("lodash/snakeCase"), Seq = require("sequelize"), @@ -22,7 +21,6 @@ const RABBITMQ_URI = process.env.RABBITMQ_URI, DATABASE_URI = process.env.DATABASE_URI, QUEUE = process.env.QUEUE || "process", LOGGLY_TOKEN = process.env.LOGGLY_TOKEN, - DATADOG_TOKEN = process.env.DATADOG_TOKEN, // matches + players, 5 players with 50 matches as default BATCHSIZE = parseInt(process.env.BATCHSIZE) || 5 * (50 + 1), // maximum number of elements to be inserted in one statement @@ -51,12 +49,6 @@ if (LOGGLY_TOKEN) json: true }); -// datadog integration -if (DATADOG_TOKEN) - logger.add(new datadog({ - api_key: DATADOG_TOKEN - }), null, true); - // MadGlory API uses snakeCase, our db uses camel_case function snakeCaseKeys(obj) { Object.keys(obj).forEach((key) => { |
