feat: ログを追加

This commit is contained in:
usbharu 2023-04-21 21:05:26 +09:00
parent 6665481c6a
commit 02d262f36c
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 5 additions and 0 deletions

View File

@ -5,9 +5,13 @@ import dev.usbharu.hideout.repository.IPostRepository
import dev.usbharu.hideout.service.IPostService import dev.usbharu.hideout.service.IPostService
import dev.usbharu.hideout.service.activitypub.ActivityPubNoteService import dev.usbharu.hideout.service.activitypub.ActivityPubNoteService
import dev.usbharu.hideout.service.job.JobQueueParentService import dev.usbharu.hideout.service.job.JobQueueParentService
import org.slf4j.LoggerFactory
class PostService(private val postRepository:IPostRepository,private val activityPubNoteService: ActivityPubNoteService) : IPostService { 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) { override suspend fun create(post: Post) {
logger.debug("create post={}",post)
val postEntity = postRepository.insert(post) val postEntity = postRepository.insert(post)
activityPubNoteService.createNote(postEntity) activityPubNoteService.createNote(postEntity)
} }

View File

@ -11,4 +11,5 @@
<logger name="io.netty" level="INFO"/> <logger name="io.netty" level="INFO"/>
<logger name="kjob.core.internal.scheduler.JobServiceImpl" level="INFO"/> <logger name="kjob.core.internal.scheduler.JobServiceImpl" level="INFO"/>
<logger name="Exposed" level="INFO"/> <logger name="Exposed" level="INFO"/>
<logger name="io.ktor.server.plugins.contentnegotiation" level="INFO"/>
</configuration> </configuration>