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:
committed by
Facebook GitHub Bot
parent
72e6ba2705
commit
1f2a7f9391
@@ -164,6 +164,10 @@ async function startHTTPServer(
|
||||
server.close();
|
||||
});
|
||||
|
||||
server.on('error', (e: Error) => {
|
||||
console.warn('[flipper-server] HTTP server error: ', e);
|
||||
});
|
||||
|
||||
server.listen(config.port);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user