Log HTTP server errors

Summary: Currently, we are not interested in these errors. Let's add some logging as a way of knowing if they take place and why.

Reviewed By: antonk52

Differential Revision: D49828378

fbshipit-source-id: f741a45e1ba9892aa54dca85f97bcc419e0b5e25
This commit is contained in:
Lorenzo Blasa
2023-10-02 08:52:40 -07:00
committed by Facebook GitHub Bot
parent 72e6ba2705
commit 1f2a7f9391

View File

@@ -164,6 +164,10 @@ async function startHTTPServer(
server.close(); server.close();
}); });
server.on('error', (e: Error) => {
console.warn('[flipper-server] HTTP server error: ', e);
});
server.listen(config.port); server.listen(config.port);
/** /**