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:
committed by
Facebook GitHub Bot
parent
ecc50f47e8
commit
ef6e3df9df
@@ -228,10 +228,9 @@ export function attachSocketServer(
|
||||
});
|
||||
|
||||
async function onClientClose(error: Error | undefined = undefined) {
|
||||
console.log(`Client disconnected ${clientAddress}`);
|
||||
if (error) {
|
||||
console.error(`Client disconnected ${clientAddress} with error`, error);
|
||||
} else {
|
||||
console.log(`Client disconnected ${clientAddress}`);
|
||||
console.error('Client disconnected with error', error);
|
||||
}
|
||||
|
||||
numberOfConnectedClients--;
|
||||
|
||||
Reference in New Issue
Block a user