From 80a65912323c821fcb0b9fb54f9070ef16fd004c Mon Sep 17 00:00:00 2001 From: Bryan Mikaelian Date: Thu, 2 Mar 2017 10:55:39 -0600 Subject: [PATCH] Fix bad copy-paste for writeToLegacy check --- lib/librato.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librato.js b/lib/librato.js index e927b99..de1c672 100644 --- a/lib/librato.js +++ b/lib/librato.js @@ -630,8 +630,8 @@ exports.init = function librato_init(startup_time, config, events, logger) tags = config.librato.tags; } - // Set global measurement tags if they are defined. - if (config.librato.writeToLegacy && Object.keys(config.librato.writeToLegacy).length) { + // Write metrics to legacy API + if (config.librato.writeToLegacy) { writeToLegacy = config.librato.writeToLegacy; }