Moved log forward
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
This commit is contained in:
parent
905eea19d5
commit
f3d8e3e0cc
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue