From 855d7bee545088937b04f66ae24cb1c945399858 Mon Sep 17 00:00:00 2001 From: rlarltj Date: Sun, 29 Sep 2024 14:23:03 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20login=20log=EB=A5=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/moneymong/domain/user/api/UserController.java | 3 +++ .../com/moneymong/domain/user/api/request/LoginRequest.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/com/moneymong/domain/user/api/UserController.java b/src/main/java/com/moneymong/domain/user/api/UserController.java index 7dd9a22..2d63b42 100644 --- a/src/main/java/com/moneymong/domain/user/api/UserController.java +++ b/src/main/java/com/moneymong/domain/user/api/UserController.java @@ -10,6 +10,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.web.bind.annotation.*; @@ -17,6 +18,7 @@ @RequestMapping("/api/v1/users") @RequiredArgsConstructor @RestController +@Slf4j public class UserController { private final UserFacadeService userFacadeService; @@ -27,6 +29,7 @@ public class UserController { public LoginSuccessResponse login( @RequestBody @Valid LoginRequest loginRequest ) { + log.info("login request: {}", loginRequest); return userFacadeService.login(loginRequest); } diff --git a/src/main/java/com/moneymong/domain/user/api/request/LoginRequest.java b/src/main/java/com/moneymong/domain/user/api/request/LoginRequest.java index 6ea1fbd..1548ce0 100644 --- a/src/main/java/com/moneymong/domain/user/api/request/LoginRequest.java +++ b/src/main/java/com/moneymong/domain/user/api/request/LoginRequest.java @@ -2,7 +2,9 @@ import jakarta.validation.constraints.NotBlank; import lombok.Getter; +import lombok.ToString; +@ToString @Getter public class LoginRequest { @NotBlank