Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Fix bad copy-paste for writeToLegacy check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Mikaelian committed Mar 2, 2017
1 parent 8994b47 commit 80a6591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/librato.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 80a6591

Please sign in to comment.