Allow shutting down of appenders without disabling future log writes
This commit is contained in:
@@ -80,7 +80,9 @@ function configure(config, options) {
|
||||
}
|
||||
|
||||
function shutdown(cb) {
|
||||
async.each(openFiles, function(file, done) {
|
||||
var filesToClose = openFiles;
|
||||
openFiles = [];
|
||||
async.each(filesToClose, function(file, done) {
|
||||
if (!file.write(eol, "utf-8")) {
|
||||
file.once('drain', function() {
|
||||
file.end(done);
|
||||
|
||||
Reference in New Issue
Block a user