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()); } }