Skip to content

Commit

Permalink
IS-1821: Log response time Adresseregisteret (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe authored Feb 6, 2024
1 parent 01345dc commit a128176
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ class VerifyBehandlereForKontorCronjob(
}
behandlerKontorListe.forEach { behandlerKontor ->
try {
val start = System.currentTimeMillis()
log.info("VerifyBehandlereForKontorCronjob: Starter henting av behandlere for ${behandlerKontor.herId} fra Adresseregisteret")
val behandlerKontorFraAdresseregisteret = fastlegeClient.behandlereForKontor(
callId = UUID.randomUUID().toString(),
kontorHerId = behandlerKontor.herId!!.toInt()
)
log.info("VerifyBehandlereForKontorCronjob: Behandlere for ${behandlerKontor.herId} hentet fra Adresseregisteret, brukte ${System.currentTimeMillis() - start} ms")
if (behandlerKontorFraAdresseregisteret != null) {
if (!behandlerKontorFraAdresseregisteret.aktiv) {
log.info("VerifyBehandlereForKontorCronjob: Disable dialogmelding for kontor siden inaktiv i Adresseregisteret: herId ${behandlerKontor.herId} partnerId ${behandlerKontor.partnerId}")
Expand Down

0 comments on commit a128176

Please sign in to comment.