From a8dae2cfa863ad3079f68ce7c4f77e14907542c7 Mon Sep 17 00:00:00 2001 From: xxeol2 Date: Fri, 15 Sep 2023 10:18:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=9A=8C=EC=9B=90=20=ED=83=88=ED=87=B4?= =?UTF-8?q?=EC=8B=9C=20=EB=A1=9C=EA=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/festago/auth/application/AuthService.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/src/main/java/com/festago/auth/application/AuthService.java b/backend/src/main/java/com/festago/auth/application/AuthService.java index 6c8b26647..f559d219b 100644 --- a/backend/src/main/java/com/festago/auth/application/AuthService.java +++ b/backend/src/main/java/com/festago/auth/application/AuthService.java @@ -6,6 +6,8 @@ import com.festago.common.exception.NotFoundException; import com.festago.member.domain.Member; import com.festago.member.repository.MemberRepository; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -13,6 +15,8 @@ @Transactional public class AuthService { + private static final Logger log = LoggerFactory.getLogger(AuthService.class); + private final MemberRepository memberRepository; public AuthService(MemberRepository memberRepository) { @@ -35,6 +39,12 @@ private Member signUp(UserInfo userInfo) { public void deleteMember(Long memberId) { Member member = memberRepository.findById(memberId) .orElseThrow(() -> new NotFoundException(ErrorCode.MEMBER_NOT_FOUND)); + logDeleteMember(member); memberRepository.delete(member); } + + private void logDeleteMember(Member member) { + log.info("[DELETE MEMBER] memberId: {} / socialType: {} / socialId: {}", + member.getId(), member.getSocialType(), member.getSocialId()); + } }