From 8ca092cdb9fce0b4d22bf5e5a4f42b7a6ca67ff4 Mon Sep 17 00:00:00 2001 From: John Engler Date: Sat, 5 Apr 2014 16:14:56 -0700 Subject: [PATCH] Removed callback to write, as it is not needed. --- lib/appenders/file.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/appenders/file.js b/lib/appenders/file.js index b5b3fc8..a0c2869 100644 --- a/lib/appenders/file.js +++ b/lib/appenders/file.js @@ -62,12 +62,7 @@ function fileAppender (file, layout, logSize, numBackups) { openFiles.push(logFile); return function(loggingEvent) { - logFile.write(layout(loggingEvent) + eol, "utf8", - function() { - // just here to keep the event loop - // open - doesn't work. - return; - }); + logFile.write(layout(loggingEvent) + eol, "utf8"); }; }