Skip to content

Commit 8a7984b

Browse files
committed
refactor: ChatService 불필요한 로깅 메서드 제거
중복된 예외 처리 제거 및 코드 정리 LogChatRequestCommand, LogChatProcessContext 메서드 삭제 메트릭스 서비스에서 이미 로깅 제공으로 중복 방지
1 parent 06436d3 commit 8a7984b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ProjectVG.Application/Services/Chat/ChatService.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public async Task<ChatRequestResult> EnqueueChatRequestAsync(ChatRequestCommand
7070

7171
var preprocessContext = await PrepareChatRequestAsync(command);
7272

73-
LogChatRequestCommand(command);
74-
7573
_ = Task.Run(async () => {
7674
await ProcessChatRequestInternalAsync(preprocessContext).ConfigureAwait(false);
7775
});
@@ -123,20 +121,10 @@ private async Task ProcessChatRequestInternalAsync(ChatProcessContext context)
123121
await failureHandler.HandleAsync(context).ConfigureAwait(false);
124122
}
125123
finally {
126-
LogChatProcessContext(context);
127124
_metricsService.EndChatMetrics();
128125
_metricsService.LogChatMetrics();
129126
}
130127
}
131128

132-
private void LogChatRequestCommand(ChatRequestCommand command)
133-
{
134-
_logger.LogInformation("Starting chat process: {CommandInfo}", command.ToDebugString());
135-
}
136-
137-
private void LogChatProcessContext(ChatProcessContext context)
138-
{
139-
_logger.LogInformation("Chat process completed: {ContextInfo}", context.ToDebugString());
140-
}
141129
}
142130
}

0 commit comments

Comments
 (0)