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 16, 2024
1 parent 5b3200d commit c0672d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/syfo/services/JournalService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class JournalService(
private val dokArkivClient: DokArkivClient,
private val pdfgenClient: PdfgenClient,
private val database: DatabaseInterface,
private val retryJPEnabled: Boolean = true,
private val jpRetryEnabled: Boolean = true,
) {
suspend fun onJournalRequest(
receivedDialogmelding: ReceivedDialogmelding,
Expand Down Expand Up @@ -54,7 +54,7 @@ class JournalService(
val journalpost = try {
dokArkivClient.createJournalpost(journalpostPayload, loggingMeta)
} catch (exc: Exception) {
if (retryJPEnabled) {
if (jpRetryEnabled) {
throw exc
} else {
logger.warn("Journalføring failed, skipping retry: ", exc)
Expand Down

0 comments on commit c0672d8

Please sign in to comment.