From 5de5d79361ea14f234f9bfc3bd61beb43a581593 Mon Sep 17 00:00:00 2001 From: esperar Date: Tue, 17 Dec 2024 23:00:49 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=ED=97=A4?= =?UTF-8?q?=EB=8D=94=20=EC=84=A4=EC=A0=95=20squirrel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2/domain/music/listener/MusicApplicationEventListener.kt | 2 +- .../kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt index 8f4d07c5..67ed9ed3 100644 --- a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt @@ -28,7 +28,7 @@ class MusicApplicationEventListener( ) @TransactionalEventListener(phase = TransactionPhase.AFTER_COMPLETION) fun onEvent(event: MusicDotoriEvent) { - log.info("published music event: {} eventType: {}", event.id, event.eventType) + log.info("published music event: {} eventType: {}", event.id, "MUSIC") CompletableFuture.runAsync { eventPublisher.publishEvent(event,event.eventType.toString()) } diff --git a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt index 808f1a5e..a7cd6577 100644 --- a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt @@ -28,7 +28,7 @@ class ReserveEventListener( ) @TransactionalEventListener(phase = TransactionPhase.AFTER_COMPLETION) fun onEvent(event: ReserveDotoriEvent) { - log.info("published reserve event: {} eventType: {}", event.id, event.eventType) + log.info("published reserve event: {} eventType: {}", event.id, "RESERVE") CompletableFuture.runAsync { eventPublisher.publishEvent(event,event.eventType.toString()) } From b67c64d511ceba17393f1d6a52e27a86e07ecac1 Mon Sep 17 00:00:00 2001 From: esperar Date: Tue, 17 Dec 2024 23:09:06 +0900 Subject: [PATCH 2/4] music event type publisher --- .../v2/domain/music/listener/MusicApplicationEventListener.kt | 2 +- .../kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt index 67ed9ed3..164b9c8a 100644 --- a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt @@ -30,7 +30,7 @@ class MusicApplicationEventListener( fun onEvent(event: MusicDotoriEvent) { log.info("published music event: {} eventType: {}", event.id, "MUSIC") CompletableFuture.runAsync { - eventPublisher.publishEvent(event,event.eventType.toString()) + eventPublisher.publishEvent(event, "MUSIC") } } diff --git a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt index a7cd6577..f424fb1a 100644 --- a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt @@ -30,7 +30,7 @@ class ReserveEventListener( fun onEvent(event: ReserveDotoriEvent) { log.info("published reserve event: {} eventType: {}", event.id, "RESERVE") CompletableFuture.runAsync { - eventPublisher.publishEvent(event,event.eventType.toString()) + eventPublisher.publishEvent(event, "RESERVE") } } From 12a8e649fa0d4f9e3d82a00c2f1bc3d209e69f02 Mon Sep 17 00:00:00 2001 From: Hope Kim Date: Tue, 17 Dec 2024 23:28:18 +0900 Subject: [PATCH 3/4] Update src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt --- .../v2/domain/music/listener/MusicApplicationEventListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt index 164b9c8a..1f3e292e 100644 --- a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt @@ -28,7 +28,7 @@ class MusicApplicationEventListener( ) @TransactionalEventListener(phase = TransactionPhase.AFTER_COMPLETION) fun onEvent(event: MusicDotoriEvent) { - log.info("published music event: {} eventType: {}", event.id, "MUSIC") + log.info("published music event: {} eventType: MUSIC", event.id) CompletableFuture.runAsync { eventPublisher.publishEvent(event, "MUSIC") } From 42c24885621c0c136d1e961c4953b19d36cc6561 Mon Sep 17 00:00:00 2001 From: Hope Kim Date: Tue, 17 Dec 2024 23:28:24 +0900 Subject: [PATCH 4/4] Update src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt --- .../kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt index f424fb1a..b47eef52 100644 --- a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt @@ -28,7 +28,7 @@ class ReserveEventListener( ) @TransactionalEventListener(phase = TransactionPhase.AFTER_COMPLETION) fun onEvent(event: ReserveDotoriEvent) { - log.info("published reserve event: {} eventType: {}", event.id, "RESERVE") + log.info("published reserve event: {} eventType: RESERVE", event.id) CompletableFuture.runAsync { eventPublisher.publishEvent(event, "RESERVE") }