Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler committed Jul 9, 2024
1 parent 2e29cb5 commit 412fe05
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,21 @@ import org.springframework.context.annotation.Configuration
class RestConfig {
@Bean
fun httpClient(objectMapper: ObjectMapper): HttpClient {
return HttpClient {
val httpClient = HttpClient {
install(ContentNegotiation) {
register(ContentType.Any, JacksonConverter(objectMapper))
}

install(HttpTimeout)

install(Logging) {
level = LogLevel.ALL
level = LogLevel.BODY
}

install(SentryPlugin)
}

return httpClient
}
}

Expand All @@ -55,7 +57,7 @@ val SentryPlugin = createClientPlugin("SentryPlugin") {
request.url.toString(),
request.method.value
).apply {
setData("response", response.bodyAsText())
setData("content", response.bodyAsText())
}
)
}
Expand Down

0 comments on commit 412fe05

Please sign in to comment.