Skip to content

Commit 6b381ce

Browse files
authored
fix: 어노테이션 추가 (#252)
Co-authored-by: 나용준 <141994188+youngJun99@users.noreply.github.com>
1 parent dd558bc commit 6b381ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/ssu/eatssu/global/log/event/LogEventListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import lombok.RequiredArgsConstructor;
44
import lombok.extern.slf4j.Slf4j;
5+
import org.springframework.scheduling.annotation.Async;
56
import org.springframework.stereotype.Component;
67
import org.springframework.transaction.event.TransactionPhase;
78
import org.springframework.transaction.event.TransactionalEventListener;
@@ -11,6 +12,7 @@
1112
@Slf4j
1213
public class LogEventListener {
1314

15+
@Async
1416
@TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT)
1517
public void handleLogEvent(LogEvent event) {
1618
log.info(event.message());

0 commit comments

Comments
 (0)