Skip to content

Commit a8dc29b

Browse files
committed
fjerner dobbel logg med ved exception
1 parent 2a392f4 commit a8dc29b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/main/api/Routes.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private suspend fun hentPerioder(
185185
)
186186
}.onFailure { ex ->
187187
prometheus.httpFailedCallCounter(consumerTag, call.request.path()).increment()
188-
logger.error("Klarte ikke hente vedtak fra intern API", ex)
188+
189189
throw ex
190190
}.onSuccess { res ->
191191
sporingsloggClient.loggTilSporingslogg(
@@ -251,7 +251,7 @@ private suspend fun hentMedium(
251251
)
252252
}.onFailure { ex ->
253253
prometheus.httpFailedCallCounter(consumerTag, call.request.path()).increment()
254-
logger.error("Klarte ikke hente vedtak fra intern API", ex)
254+
255255
throw ex
256256
}.onSuccess { res ->
257257
sporingsloggClient.loggTilSporingslogg(
@@ -362,7 +362,7 @@ private suspend fun hentMaksimum(
362362
}.filter { it.status != "INAKT" })
363363
}.onFailure { ex ->
364364
prometheus.httpFailedCallCounter(consumerTag, call.request.path()).increment()
365-
logger.error("Klarte ikke hente vedtak fra intern API", ex)
365+
366366
throw ex
367367
}.onSuccess { res ->
368368
sporingsloggClient.loggTilSporingslogg(

0 commit comments

Comments
 (0)