mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 20:28:53 +00:00
fix(NR): remove metric check that crashed
This commit is contained in:
parent
867146dc19
commit
2cdb30bd5b
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ var request = require('request');
|
|||
var IS_PROD = nconf.get('NODE_ENV') === 'production';
|
||||
|
||||
module.exports = function(server,mongoose) {
|
||||
if (IS_PROD) {
|
||||
/* if (IS_PROD) {
|
||||
var mins = 3, // how often to run this check
|
||||
useAvg = false, // use average over 3 minutes, or simply the last minute's report
|
||||
url = 'https://api.newrelic.com/v2/applications/'+nconf.get('NEW_RELIC_APPLICATION_ID')+'/metrics/data.json?names[]=Apdex&values[]=score';
|
||||
|
|
@ -35,7 +35,7 @@ module.exports = function(server,mongoose) {
|
|||
throw memoryLeakMessage;
|
||||
}
|
||||
}, mins*60*1000);
|
||||
}
|
||||
} */
|
||||
|
||||
return domainMiddleware({
|
||||
server: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue