Skip to content

Commit

Permalink
Logg melding som mangler startdata for service (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga authored Dec 5, 2024
1 parent 28676bb commit e6351dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import kotlinx.serialization.json.JsonElement
import no.nav.helsearbeidsgiver.felles.EventName
import no.nav.helsearbeidsgiver.felles.Key
import no.nav.helsearbeidsgiver.felles.json.toMap
import no.nav.helsearbeidsgiver.felles.json.toPretty
import no.nav.helsearbeidsgiver.felles.rapidsrivers.model.Fail
import no.nav.helsearbeidsgiver.felles.rapidsrivers.redis.RedisStore
import no.nav.helsearbeidsgiver.utils.log.MdcUtils
Expand Down Expand Up @@ -77,7 +78,7 @@ abstract class ServiceMed1Steg<S0, S1> : Service {
}.onFailure {
"Klarte ikke lese startdata for service.".also {
logger.error(it)
sikkerLogger.error(it)
sikkerLogger.error("$it\n${melding.toPretty()}")
}
}
}
Expand Down

0 comments on commit e6351dc

Please sign in to comment.