Skip to content

Commit

Permalink
monitorering - litt logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kroken committed Nov 1, 2023
1 parent 0794240 commit 1cc8e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class MicrometerStatusMalere(private val registry: MeterRegistry) {
}

fun oppdater(status: ApplicationStatus) {
log.info("Oppdaterer applikasjonsstatus til: $status")
this.status = status
}

Expand All @@ -43,7 +44,7 @@ class MicrometerStatusMalere(private val registry: MeterRegistry) {
}

fun antallMangler() : Int {
println("antallMangler status=$status")
if (status == null) log.warn("applikasjonsstatus har ikke blitt satt")
val mangler = (status == null || status is ApplicationStatus.IkkeKjort)
return if (mangler) 1 else 0
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.monitorering

import io.micrometer.core.instrument.MeterRegistry
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.common.PostgresqlTestContainer
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.godskriv.model.GodskrivOpptjeningRepo
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.omsorgsopptjening.repository.BehandlingRepo
Expand Down

0 comments on commit 1cc8e9a

Please sign in to comment.