mirror of https://github.com/usbharu/Hideout.git
feat: ログを追加
This commit is contained in:
parent
6665481c6a
commit
02d262f36c
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -11,4 +11,5 @@
|
|||
<logger name="io.netty" level="INFO"/>
|
||||
<logger name="kjob.core.internal.scheduler.JobServiceImpl" level="INFO"/>
|
||||
<logger name="Exposed" level="INFO"/>
|
||||
<logger name="io.ktor.server.plugins.contentnegotiation" level="INFO"/>
|
||||
</configuration>
|
||||
|
|
Loading…
Reference in New Issue