fixed tests to cover writestream
This commit is contained in:
@@ -289,7 +289,7 @@ function fileAppender (file, layout, logSize, numBackups, filePollInterval) {
|
||||
setupLogRolling(logFile, file, logSize, numBackups || 5, (filePollInterval * 1000) || 30000);
|
||||
}
|
||||
|
||||
//close the file on process exit, otherwise the process won't die.
|
||||
//close the file on process exit.
|
||||
process.on('exit', function() {
|
||||
logFile.end();
|
||||
logFile.destroySoon();
|
||||
|
||||
Reference in New Issue
Block a user