Skip to content

Commit

Permalink
style : log 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirius506775 committed Mar 23, 2024
1 parent 19ff191 commit 1ab9bc7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package site.balpyo.ai.controller;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.function.ServerRequest;
import site.balpyo.ai.dto.AIGenerateRequest;
import site.balpyo.ai.service.AIGenerateService;
import site.balpyo.common.dto.CommonResponse;
Expand All @@ -18,6 +18,7 @@
@RestController
@RequestMapping("/user/ai")
@RequiredArgsConstructor
@Slf4j
public class AIUserController {

private final AIGenerateService aiGenerateService;
Expand All @@ -34,6 +35,10 @@ public ResponseEntity<CommonResponse> generateScript(@Valid @RequestBody AIGener
System.out.println(uid);
if(CommonUtils.isAnyParameterNullOrBlank(uid))return CommonResponse.error(ErrorEnum.BALPYO_UID_KEY_MISSING);

log.info("-------------------- 스크립트 생성 요청");
log.info("-------------------- 요청 내용 ");
log.info("--------------------" + aiGenerateRequest);

return aiGenerateService.generateScript(aiGenerateRequest,uid);
}

Expand Down

0 comments on commit 1ab9bc7

Please sign in to comment.