From 06150a8c8627ebdcadb15a4a9d54f0493aa8e277 Mon Sep 17 00:00:00 2001 From: Carl Littke Date: Wed, 8 Jul 2015 10:05:58 -0700 Subject: [PATCH] Fix: Dont override the 'platform' field if set by the user. Still default to 'site' for backwards compat. --- logger.js | 2 +- package.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logger.js b/logger.js index 9f9f9d8..c249da2 100644 --- a/logger.js +++ b/logger.js @@ -80,7 +80,7 @@ logger = function(options) { // Use environment name from options or default to NODE_ENV. baseParams.environment = baseParams.environment || process.env.NODE_ENV; - baseParams.platform = 'site'; + baseParams.platform = baseParams.platform || 'site'; loggers.push(Loggers.loggly(logglyClient, baseParams)); } catch (e) { diff --git a/package.js b/package.js index 2b5dd90..2cc6d2b 100644 --- a/package.js +++ b/package.js @@ -2,7 +2,7 @@ Package.describe({ name: 'lookback:logger', summary: 'Logger for Meteor with Loggly integration', git: 'https://github.com/lookback/meteor-logger', - version: '1.1.1' + version: '1.2.0' }); Npm.depends({