mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
Removed callback to write, as it is not needed.
This commit is contained in:
parent
3ec9811b5e
commit
8ca092cdb9
@ -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");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user