Skip to content

Commit

Permalink
Merge pull request #21 from UnderTheSea-E/log
Browse files Browse the repository at this point in the history
feat: add log
  • Loading branch information
wyoung163 authored Aug 10, 2023
2 parents 1e5fd67 + 3f751d8 commit ec5e9e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ out/

application.yml
application.properties
src/main/java/com/example/UnderTheSea_Server/log/test.log
logback.xml
log/
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import com.example.UnderTheSea_Server.model.PostUserRes;
import com.example.UnderTheSea_Server.service.KakaoUserService;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;

Expand All @@ -15,6 +17,7 @@
@RequiredArgsConstructor
public class KakaoLoginController {
private final KakaoUserService kakaoUserService;
private final Logger logger = LoggerFactory.getLogger(this.getClass());

/**
* Post User API (kakao)
Expand All @@ -25,6 +28,7 @@ public class KakaoLoginController {
public BaseResponse<PostUserRes> kakaoLogin(@RequestBody PostUserReq postUserReq, HttpServletResponse response) throws JsonProcessingException {
try {
PostUserRes postUserRes = kakaoUserService.kakaoLogin(postUserReq, response);
logger.debug("debug level test: " + postUserRes.userId);
return new BaseResponse<>(postUserRes);
} catch(BaseException exception){
return new BaseResponse<>((exception.getStatus()));
Expand Down
Empty file.

0 comments on commit ec5e9e7

Please sign in to comment.