Skip to content

Commit

Permalink
Removed memwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Apr 8, 2014
1 parent db14813 commit 95fd0bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
29 changes: 0 additions & 29 deletions app/core/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,33 +84,4 @@ process.on('uncaughtException', function ( err ) {
});
});

//memwatch
var memwatch = require('memwatch');

var memory_logger = new (winston.Logger)({
transports: [
new (winston.transports.File) ({

filename: global.conf.root + '/log/memory.log',
levels: winston.config.syslog.levels,
level: level,
timestamp: true,
colorize: false,
})
]
});

memwatch.on('leak', function(info) {
memory_logger.error(info);
});

memwatch.on('stats', function(stats) {
//Only log stats on debug
if( process.argv.indexOf('-d') === 1 ) {
logger.log('notice', 'Memory stats', stats);
memory_logger.log('notice', 'Memory stats', stats);
}
});


module.exports = logger;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"tmdb-3": "0.0.5",
"spawn-command": "0.0.2",
"winston": "git://github.com/soyuka/winston.git",
"memwatch": "^0.2.2",
"shelljs": "~0.2.6"
},
"devDependencies": {
Expand Down

0 comments on commit 95fd0bd

Please sign in to comment.