Remove the client from error log

Summary: Removing this information from the error as it will cause duplicated error tasks.

Reviewed By: passy

Differential Revision: D48646678

fbshipit-source-id: 26e5525318b4720568275a5086df00f21b7d2836
This commit is contained in:
Lorenzo Blasa
2023-08-24 10:05:17 -07:00
committed by Facebook GitHub Bot
parent ecc50f47e8
commit ef6e3df9df

View File

@@ -228,10 +228,9 @@ export function attachSocketServer(
});
async function onClientClose(error: Error | undefined = undefined) {
if (error) {
console.error(`Client disconnected ${clientAddress} with error`, error);
} else {
console.log(`Client disconnected ${clientAddress}`);
if (error) {
console.error('Client disconnected with error', error);
}
numberOfConnectedClients--;