From 801aed834f7a027eab370e1b08d646b4d95becfd Mon Sep 17 00:00:00 2001
From: usbharu <64310155+usbharu@users.noreply.github.com>
Date: Fri, 21 Apr 2023 21:05:26 +0900
Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=AD=E3=82=B0=E3=82=92=E8=BF=BD?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../kotlin/dev/usbharu/hideout/service/impl/PostService.kt | 4 ++++
src/main/resources/logback.xml | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/main/kotlin/dev/usbharu/hideout/service/impl/PostService.kt b/src/main/kotlin/dev/usbharu/hideout/service/impl/PostService.kt
index ba11153f..71b1b10f 100644
--- a/src/main/kotlin/dev/usbharu/hideout/service/impl/PostService.kt
+++ b/src/main/kotlin/dev/usbharu/hideout/service/impl/PostService.kt
@@ -5,9 +5,13 @@ import dev.usbharu.hideout.repository.IPostRepository
import dev.usbharu.hideout.service.IPostService
import dev.usbharu.hideout.service.activitypub.ActivityPubNoteService
import dev.usbharu.hideout.service.job.JobQueueParentService
+import org.slf4j.LoggerFactory
class PostService(private val postRepository:IPostRepository,private val activityPubNoteService: ActivityPubNoteService) : IPostService {
+
+ private val logger = LoggerFactory.getLogger(this::class.java)
override suspend fun create(post: Post) {
+ logger.debug("create post={}",post)
val postEntity = postRepository.insert(post)
activityPubNoteService.createNote(postEntity)
}
diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml
index a2c79be6..bae7027f 100644
--- a/src/main/resources/logback.xml
+++ b/src/main/resources/logback.xml
@@ -11,4 +11,5 @@
+