seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit fcd9e5498811a1e57a5b7aed4f36d90e1c9a99c4
parent bc421bdc69ae97f893bc140da1cce77b3b34da16
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Thu,  6 Jul 2017 20:37:25 +0100

nr fix

Diffstat:
Mapp.js | 4++++
Dnewrelic.js | 26--------------------------
2 files changed, 4 insertions(+), 26 deletions(-)

diff --git a/app.js b/app.js @@ -1,5 +1,9 @@ 'use strict'; +if(process.env.NODE_ENV === 'production') { + require('newrelic'); +} + const express = require('express'); const path = require('path'); const logger = require('morgan'); diff --git a/newrelic.js b/newrelic.js @@ -1,26 +0,0 @@ -'use strict'; - -/** - * New Relic agent configuration. - * - * See lib/config.default.js in the agent distribution for a more complete - * description of configuration variables and their potential values. - */ -exports.config = { - /** - * Array of application names. - */ - app_name: ['seedlinux'], - /** - * Your New Relic license key. - */ - license_key: process.env.NR_KEY, - logging: { - /** - * Level at which to log. 'trace' is most useful to New Relic when diagnosing - * issues with the agent, 'info' and higher will impose the least overhead on - * production applications. - */ - level: 'info' - } -}