Skip to content

Commit

Permalink
refactor: 불필요한 debug 로깅 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongUijeong committed Dec 14, 2023
1 parent 0b1e31f commit f8f01af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
import com.fc.shimpyo_be.global.common.ResponseDto;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/auth")
Expand All @@ -28,7 +26,6 @@ public class AuthRestController {
@PostMapping("/signup")
public ResponseEntity<ResponseDto<MemberResponseDto>> signUp(
@Valid @RequestBody SignUpRequestDto signUpRequestDto) {
log.debug("email: {}, name: {}", signUpRequestDto.getEmail(), signUpRequestDto.getName());
return ResponseEntity.status(HttpStatus.CREATED).body(
ResponseDto.res(HttpStatus.CREATED, authService.signUp(signUpRequestDto),
"성공적으로 회원가입 했습니다."));
Expand All @@ -37,7 +34,6 @@ public ResponseEntity<ResponseDto<MemberResponseDto>> signUp(
@PostMapping("/signin")
public ResponseEntity<ResponseDto<SignInResponseDto>> signIn(
@Valid @RequestBody SignInRequestDto signInRequestDto) {
log.debug("email: {}", signInRequestDto.getEmail());
return ResponseEntity.status(HttpStatus.OK).body(
ResponseDto.res(HttpStatus.OK, authService.signIn(signInRequestDto),
"성공적으로 로그인 했습니다."));
Expand All @@ -46,8 +42,6 @@ public ResponseEntity<ResponseDto<SignInResponseDto>> signIn(
@PostMapping("/refresh")
public ResponseEntity<ResponseDto<SignInResponseDto>> refresh(
@Valid @RequestBody RefreshRequestDto refreshRequestDto) {
log.debug("accessToken: {}, refreshToken: {}", refreshRequestDto.getAccessToken(),
refreshRequestDto.getRefreshToken());
return ResponseEntity.status(HttpStatus.OK).body(
ResponseDto.res(HttpStatus.OK, authService.refresh(refreshRequestDto),
"성공적으로 토큰을 재발급 했습니다."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.fc.shimpyo_be.global.common.ResponseDto;
import com.fc.shimpyo_be.global.util.SecurityUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -17,7 +16,6 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/members")
Expand All @@ -28,7 +26,6 @@ public class MemberRestController {

@GetMapping
public ResponseEntity<ResponseDto<MemberResponseDto>> getMember() {
log.debug("memberId: {}", securityUtil.getCurrentMemberId());
return ResponseEntity.status(HttpStatus.OK).body(
ResponseDto.res(HttpStatus.OK, memberService.getMember(),
"성공적으로 회원 정보를 조회했습니다."));
Expand All @@ -37,7 +34,6 @@ public ResponseEntity<ResponseDto<MemberResponseDto>> getMember() {
@PatchMapping
public ResponseEntity<ResponseDto<MemberResponseDto>> updateMember(@RequestBody
UpdateMemberRequestDto updateMemberRequestDto) {
log.debug("memberId: {}", securityUtil.getCurrentMemberId());
return ResponseEntity.status(HttpStatus.OK).body(
ResponseDto.res(HttpStatus.OK, memberService.updateMember(updateMemberRequestDto),
"성공적으로 회원 정보를 수정했습니다."));
Expand All @@ -46,7 +42,6 @@ public ResponseEntity<ResponseDto<MemberResponseDto>> updateMember(@RequestBody
@PostMapping
public ResponseEntity<ResponseDto<Void>> checkPassword(
@RequestBody CheckPasswordRequestDto checkPasswordRequestDto) {
log.debug("memberId: {}", securityUtil.getCurrentMemberId());
memberService.checkPassword(checkPasswordRequestDto);
return ResponseEntity.status(HttpStatus.OK).body(
ResponseDto.res(HttpStatus.OK, "비밀번호가 일치합니다."));
Expand Down

0 comments on commit f8f01af

Please sign in to comment.