Skip to content

Commit

Permalink
remove debug statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Feb 6, 2024
1 parent 324226c commit 524c36e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/resources/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,17 @@ const createWorker = (
httpProxyStream.on('data', NO_OP);

httpProxyStream.on('error', (err) => {
console.log('An error occurred:', err);
console.error('An error occurred:', err);
});

const clientMessage = new ClientMessage();
clientMessage.setRequest(httpProxyRequest);
console.log("writing registration request to proxy stream");
httpProxyStream.write(clientMessage);
console.log("proxy stream request written");
// Start Node application that HTTP proxy sits on
if (process.env.NITRIC_ENVIRONMENT !== 'build') {
const srv = app.listen(port, callback);
console.log("started listening on server:", port);



srv.on('close', () => {
console.log("closing http proxy stream");
httpProxyStream.cancel();
});
}
Expand Down

0 comments on commit 524c36e

Please sign in to comment.