Skip to content

Commit cbe0dae

Browse files
committed
Logg exceptionen hvor vi også har callId i kontekst
1 parent d98eb41 commit cbe0dae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/inntektskomponenten/v1/InntektskomponentHttpClient.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ class InntektskomponentHttpClient(
9898
if (response.statusCode == -1) 500 else response.statusCode, // we did not get a response status code, ie timeout/network issues
9999
"Failed to fetch inntekt. Status code ${response.statusCode}. Response message: ${response.responseMessage}. Problem message: $detail",
100100
detail
101-
)
101+
).also {
102+
LOGGER.error { it }
103+
}
102104
})
103105
} finally {
104106
timer.observeDuration()

0 commit comments

Comments
 (0)