Fix logHandler array handling

Fixes #257
This commit is contained in:
Nick O'Leary 2014-07-02 16:31:02 +01:00
parent 3de2f3d1da
commit 9db1166ce0
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ var log = module.exports = {
},
log: function(msg) {
logHandlers.each(function() {
logHandlers[i].emit("log",msg);
logHandlers.forEach(function(handler) {
handler.emit("log",msg);
});
}
}