mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
dateFile error handling fix
This commit is contained in:
parent
f8d46a9392
commit
9433b12eac
@ -28,6 +28,9 @@ function appender(
|
||||
options
|
||||
);
|
||||
|
||||
logFile.on('error', (err) => {
|
||||
console.error('log4js.dateFileAppender - Writing to file %s, error happened ', filename, err); //eslint-disable-line
|
||||
});
|
||||
logFile.on("drain", () => {
|
||||
process.emit("log4js:pause", false);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user