Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaganrua committed Sep 13, 2024
1 parent 3ecbd46 commit 178738b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions frontend/server/express.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 (
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 178738b

Please sign in to comment.