Skip to content

Commit

Permalink
#37 move oneapm to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hailiang-wang committed Apr 22, 2016
1 parent dc553af commit 753701e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
var nconf = require('nconf');
nconf.argv().env('__');

// https://github.com/rockq-org/cnodebb/issues/37
if(nconf.get('is_oneapm') == 'true'){
require('oneapm');
}

var url = require('url'),
async = require('async'),
winston = require('winston'),
Expand Down
5 changes: 0 additions & 5 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ nconf.argv().env('__').file({
file: path.join(__dirname, '/config.json')
});

// https://github.com/rockq-org/cnodebb/issues/37
if(nconf.get('is_oneapm') == 'true'){
require('oneapm');
}

var pidFilePath = __dirname + '/pidfile',
output = logrotate({ file: __dirname + '/logs/output.log', size: '1m', keep: 3, compress: true }),
silent = nconf.get('silent') === 'false' ? false : nconf.get('silent') !== false,
Expand Down

0 comments on commit 753701e

Please sign in to comment.