From 30fbc21d4362fdef1eb61426e9b9182518f8c746 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 12 Jan 2018 19:49:18 +0100 Subject: Revert "add datadog" This reverts commit b1172a6e28f05affcd59095757bd5ab7581f9f4b. --- worker.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index 7cac550..b0d9cf4 100644 --- a/worker.js +++ b/worker.js @@ -8,7 +8,6 @@ const amqp = require("amqplib"), Promise = require("bluebird"), winston = require("winston"), loggly = require("winston-loggly-bulk"), - datadog = require("winston-datadog"), Seq = require("sequelize"), cacheManager = require("cache-manager"), api_name_mappings = require("../orm/mappings").map, @@ -19,7 +18,6 @@ const RABBITMQ_URI = process.env.RABBITMQ_URI, DATABASE_URI = process.env.DATABASE_URI, QUEUE = process.env.QUEUE || "shrink", 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) || 20, // maximum number of elements to be inserted in one statement @@ -48,12 +46,6 @@ if (LOGGLY_TOKEN) json: true }); -// datadog integration -if (DATADOG_TOKEN) - logger.add(new datadog({ - api_key: DATADOG_TOKEN - }), null, true); - // split an array into arrays of max chunksize function* chunks(arr) { for (let c=0, len=arr.length; c