1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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);
});
}
}