Skip to content

Commit

Permalink
La til logging ved start og stopp av tilgangskontroll
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Dec 5, 2024
1 parent 5011a88 commit ba68639
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ import io.ktor.server.routing.get
import io.ktor.server.routing.routing
import io.micrometer.prometheusmetrics.PrometheusConfig
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
import org.slf4j.LoggerFactory

private val logger = LoggerFactory.getLogger("tilgangskontroll")
fun main() {
logger.info("Starter tilgangskontroll...")
val prometheusMeterRegistry = PrometheusMeterRegistry(PrometheusConfig.DEFAULT)
embeddedServer(Netty, port = 8080) {
routing {
Expand All @@ -23,4 +26,5 @@ fun main() {
}
}
}.start(wait = true)
logger.info("Avslutter tilgangskontroll...")
}

0 comments on commit ba68639

Please sign in to comment.