From 9ccc146a2b5fd9faebafd62754adc5afaab5be32 Mon Sep 17 00:00:00 2001 From: rladydgn <39542757+rladydgn@users.noreply.github.com> Date: Fri, 8 Dec 2023 23:24:59 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B1=84=EC=A0=90=EC=84=9C=EB=B2=84=20-?= =?UTF-8?q?>=20api=20=EC=84=9C=EB=B2=84=20=EC=84=9C=EB=B9=84=EC=8A=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/competition/services/competition.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/be/algo-with-me-api/src/competition/services/competition.service.ts b/be/algo-with-me-api/src/competition/services/competition.service.ts index f24fb9e..6295284 100644 --- a/be/algo-with-me-api/src/competition/services/competition.service.ts +++ b/be/algo-with-me-api/src/competition/services/competition.service.ts @@ -303,6 +303,9 @@ export class CompetitionService { } async saveScoreResult(scoreResultDto: ScoreResultDto) { + this.logger.debug( + `제출id:${scoreResultDto.submissionId}, 테케id:${scoreResultDto.testcaseId}, 소켓id:${scoreResultDto.socketId}, 결과:${scoreResultDto.result}, 소모시간(ms):${scoreResultDto.timeUsage}, 소모메모리(KB):${scoreResultDto.memoryUsage}`, + ); let submission: Submission; const result = { testcaseId: scoreResultDto.testcaseId, @@ -372,7 +375,7 @@ export class CompetitionService { RESULT[totalResult], competition.startsAt, ); - + this.server .to(scoreResultDto.socketId) .emit('problemResult', { message: RESULT[totalResult], problemId: submission.problemId });