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