Мелкие поправки

This commit is contained in:
Book Pauk
2019-01-06 16:35:40 +07:00
parent da5c0cac16
commit 0e3352e65f

View File

@@ -149,7 +149,7 @@ class FileLog extends BaseLog {
this.rcid = setTimeout(() => {
this.rcid = 0;
}, LOG_ROTATE_FILE_CHECK_INTERVAL);
};
}
await fs.write(this.fd, Buffer.from(data.join('')));
}
@@ -186,10 +186,7 @@ class Logger {
let loggerClass = factory[className];
this.handlers.push(new loggerClass(logParams));
});
} else {
this.handlers.push(new DummyLog);
}
cleanupCallback = cleanupCallback || (() => {});
this.cleanup(cleanupCallback);
}