From f5bf12583bc930bbf14bcf009302b700494405f7 Mon Sep 17 00:00:00 2001 From: mjh000526 Date: Tue, 3 Dec 2024 19:42:44 +0900 Subject: [PATCH] fix(#151): log --- apps/backend/src/docker/docker.consumer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/docker/docker.consumer.ts b/apps/backend/src/docker/docker.consumer.ts index 3e34833..ee17ae9 100644 --- a/apps/backend/src/docker/docker.consumer.ts +++ b/apps/backend/src/docker/docker.consumer.ts @@ -54,10 +54,12 @@ export class DockerConsumer { try { console.log(`${c}번째 프로세스 시작`); container = await this.dockerContainerPool.getContainer(); - console.log(`${c}번째 프로세스: ${container.id}`); + console.log(`컨테이너 할당: ${container.id}`); const result = await this.runGistFiles(container, gitToken, gistId, commitId, mainFileName, inputs); await this.cleanWorkDir(container); this.dockerContainerPool.pool.push(container); + console.log(`컨테이너 반납: ${container.id}`); + console.log(`${c}번째 프로세스 종료`); return result; } catch (error) { await this.cleanWorkDir(container);