Moved log forward
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Jim Martens 2023-10-30 01:04:30 +01:00
parent 905eea19d5
commit f3d8e3e0cc
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package de.twomartens.configserver
import mu.KotlinLogging
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.kafka.KafkaProperties
import org.springframework.boot.context.event.ApplicationReadyEvent
import org.springframework.boot.context.event.ApplicationPreparedEvent
import org.springframework.boot.runApplication
import org.springframework.cloud.config.server.EnableConfigServer
import org.springframework.context.event.EventListener
@ -11,7 +11,7 @@ import org.springframework.context.event.EventListener
@SpringBootApplication
@EnableConfigServer
open class MainApplication(private val kafkaProperties: KafkaProperties) {
@EventListener(ApplicationReadyEvent::class)
@EventListener(ApplicationPreparedEvent::class)
fun run() {
log.debug {
"The Kafka is searched here: ${kafkaProperties.bootstrapServers}"