Skip to content

Commit

Permalink
IS-2643: Turn off JP-retry in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Dec 17, 2024
1 parent 0266f40 commit 1b44ed6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/kotlin/no/nav/syfo/services/JournalService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ class JournalService(
if (jpRetryEnabled) {
throw exc
} else {
logger.warn("Journalføring failed, skipping retry: ", exc)
logger.error("Journalføring failed, skipping retry (should only happen in dev-gcp)", exc)
}
null
}
// Defaulting'en til "0" skal bare forekomme i dev-gcp:
// Har dette fordi vi ellers spammer ned dokarkiv med forsøk på å journalføre
// på personer som mangler aktør-id.
val journalpostId = journalpost?.journalpostId ?: "0"
MELDING_LAGER_I_JOARK.increment()
logger.info(
Expand Down

0 comments on commit 1b44ed6

Please sign in to comment.