Merge pull request #1197 from log4js-node/update-multiprocess

Removed redundant logic in multiprocessAppender
This commit is contained in:
Lam Wei Li 2022-03-03 21:42:49 +08:00 committed by GitHub
commit b02c07c34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,10 +32,8 @@ function logServer(config, actualAppender, levels) {
let logMessage = '';
function logTheMessage(msg) {
if (logMessage.length > 0) {
debug('(master) deserialising log event and sending to actual appender');
actualAppender(deserializeLoggingEvent(clientSocket, msg));
}
debug('(master) deserialising log event and sending to actual appender');
actualAppender(deserializeLoggingEvent(clientSocket, msg));
}
function chunkReceived(chunk) {