Track unable to listen cases

Summary: Track whenever the server is unable to bind to the specified port.

Reviewed By: antonk52

Differential Revision: D49951304

fbshipit-source-id: 971d7c324f27c287036707d21bb51d26acbd6615
This commit is contained in:
Lorenzo Blasa
2023-10-05 05:48:34 -07:00
committed by Facebook GitHub Bot
parent 9fa5671ab0
commit c05fe8cb53

View File

@@ -174,6 +174,7 @@ async function startHTTPServer(
console.warn(
`[flipper-server] Unable to listen at port: ${config.port}, is already in use`,
);
tracker.track('server-socket-already-in-use', {});
process.exit(1);
}
});