From a561bb7bf1817e32183d7990494f77f03f8d512a Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 12 Jan 2018 19:49:06 +0100 Subject: Revert "add datadog" This reverts commit a2ffb39e7ba6b83fd778bccf802f9148afd3b4ba. --- worker.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index e95f1ca..cdb76f3 100644 --- a/worker.js +++ b/worker.js @@ -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) => { -- cgit v1.3.1