From dd5aa30588b68763bbf05734b614f0a1bdf145d3 Mon Sep 17 00:00:00 2001 From: csct3434 Date: Fri, 12 Apr 2024 15:43:26 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seasoning/seasoning/user/event/SignUpEventHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/today/seasoning/seasoning/user/event/SignUpEventHandler.java b/src/main/java/today/seasoning/seasoning/user/event/SignUpEventHandler.java index af8ca82..08128a8 100644 --- a/src/main/java/today/seasoning/seasoning/user/event/SignUpEventHandler.java +++ b/src/main/java/today/seasoning/seasoning/user/event/SignUpEventHandler.java @@ -1,6 +1,7 @@ package today.seasoning.seasoning.user.event; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Propagation; @@ -12,6 +13,7 @@ import today.seasoning.seasoning.user.domain.User; import today.seasoning.seasoning.user.domain.UserRepository; +@Slf4j @Component @RequiredArgsConstructor public class SignUpEventHandler { @@ -29,5 +31,6 @@ public void addOfficialAccountFriend(SignUpEvent event) { User officialUser = userRepository.findByIdOrElseThrow(officialAccountUserId); friendshipRepository.save(new Friendship(signUpUser, officialUser)); friendshipRepository.save(new Friendship(officialUser, signUpUser)); + log.info("Sign Up Event - User {}", signUpUser.getId()); } }