Skip to content

Commit

Permalink
fix: 채점서버 -> api 서버 서비스 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
rladydgn committed Dec 9, 2023
1 parent ae1dd16 commit 9ccc146
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -372,7 +375,7 @@ export class CompetitionService {
RESULT[totalResult],
competition.startsAt,
);

this.server
.to(scoreResultDto.socketId)
.emit('problemResult', { message: RESULT[totalResult], problemId: submission.problemId });
Expand Down

0 comments on commit 9ccc146

Please sign in to comment.