Skip to content

Commit 46aec8e

Browse files
committed
logger error i catch
1 parent 6a94bc0 commit 46aec8e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/kotlin/no/nav/hjelpemidler/api/OrdrelinjeAPI.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ internal fun Route.ordrelinjeAPI(context: Context) {
5353
publiserMelding(context, ordrelinje, melding)
5454
call.respond(HttpStatusCode.OK)
5555
} catch (e: RapidsAndRiverException) {
56+
logg.error(e) { "Feil under prosessering" }
5657
call.respond(HttpStatusCode.InternalServerError, "Feil under prosessering")
5758
return@post
5859
} catch (e: RuntimeException) {
60+
logg.error(e) { "Feil under prosessering" }
5961
call.respond(HttpStatusCode.OK)
6062
return@post
6163
}

src/main/kotlin/no/nav/hjelpemidler/api/ServiceForespørselAPI.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ internal fun Route.serviceforespørselAPI(context: Context) {
3434
publiserMelding(context, serviceForespørselEndring, sfMessage)
3535
call.respond(HttpStatusCode.OK)
3636
} catch (e: RapidsAndRiverException) {
37+
logg.error(e) { "Feil under prosessering" }
3738
call.respond(HttpStatusCode.InternalServerError, "Feil under prosessering")
3839
return@post
3940
} catch (e: RuntimeException) {
41+
logg.error(e) { "Feil under prosessering" }
4042
call.respond(HttpStatusCode.OK)
4143
return@post
4244
}

0 commit comments

Comments
 (0)