diff --git a/frontend/server/express.mjs b/frontend/server/express.mjs index 1fe8f29a..39f692eb 100644 --- a/frontend/server/express.mjs +++ b/frontend/server/express.mjs @@ -357,7 +357,6 @@ function startExpressServer() { const kubeExec = spawn("kubectl", kubeConfig); kubeExec.stderr.on("data", (data) => { - console.log(`stderr: ${data}`); saveChildProcessLog(`stderr: ${data}`); res .status(500) @@ -374,7 +373,6 @@ function startExpressServer() { }); anvilProcess.stdout.on("data", (data) => { - console.log(`[server] stdout: ${data}`); saveChildProcessLog(`[server] stdout: ${data}`); if ( data.toString().includes("[GIN-debug] Listening and serving HTTP on") @@ -384,7 +382,6 @@ function startExpressServer() { }); const regex = /listen tcp :\d+: bind: address already in use/; anvilProcess.stderr.on("data", (data) => { - console.log(`[server] stderr: ${data}`); saveChildProcessLog(`[server] stderr: ${data}`); if ( data @@ -514,7 +511,6 @@ function startExpressServer() { const kubeConfig = ["config", "use-context", body.KubeContext]; const kubeExec = spawn("kubectl", kubeConfig); kubeExec.stderr.on("data", (data) => { - console.log(`stderr: ${data.toString()}`); saveChildProcessLog(`stderr: ${data.toString()}`); res @@ -532,9 +528,7 @@ function startExpressServer() { }); anvilProcess.stdout.on("data", (data) => { - console.log(`[server] stdout: ${data.toString()}`); - logger.info(`[server] stdout: ${data.toString()}`); - + saveChildProcessLog(`[server] stdout: ${data.toString()}`); if ( @@ -546,8 +540,7 @@ function startExpressServer() { const regex = /listen tcp :\d+: bind: address already in use/; anvilProcess.stderr.on("data", (data) => { - console.log(`[server] stderr: ${data.toString()}`); - logger.info(`[server] stderr: ${data.toString()}`); + saveChildProcessLog(`[server] stderr: ${data.toString()}`); if ( data @@ -603,8 +596,7 @@ function startExpressServer() { .catch((err) => { if (anvilProcess !== null) { anvilProcess.kill("SIGINT"); - logger.info("CHECK INFO"); - logger.info(anvilProcess.exitCode); + anvilProcess = null; } res