Removed redundant logic in multiprocessAppender

This commit is contained in:
Lam Wei Li 2022-03-03 21:33:18 +08:00
parent 3dfa03e36b
commit b705fa57c7
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

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) {