From 98d5a13738c43ac9e90130ce23034c398ed4cc49 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Fri, 10 Apr 2015 04:31:27 -0400 Subject: [PATCH] make new relic setup optional --- server/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/app.js b/server/app.js index 786eb7e..a5b2624 100644 --- a/server/app.js +++ b/server/app.js @@ -1,6 +1,8 @@ /*jshint node:true */ -if (process.env.NODE_ENV === 'production' || process.env.NEW_RELIC_LICENSE_KEY) { +if (process.env.NEW_RELIC_LICENSE_KEY) { require('newrelic'); +} else { + console.warn("New Relic agent not being started because NEW_RELIC_LICENSE_KEY is missing."); } var express = require('express'),