Skip to content

Commit

Permalink
Merge pull request #331 from hotwired/fix-logging-interceptor
Browse files Browse the repository at this point in the history
Fix potential crash from HTTP logging interceptor
  • Loading branch information
jayohms authored Apr 29, 2024
2 parents f63e94f + ea825ac commit 930eb02
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import java.util.concurrent.TimeUnit
object TurboHttpClient {
private var cache: Cache? = null
private var httpCacheSize = 100L * 1024L * 1024L // 100 MBs
private val loggingInterceptor = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BASIC
}

internal var instance = buildNewHttpClient()

Expand Down Expand Up @@ -64,8 +67,4 @@ object TurboHttpClient {

return builder.build()
}

private val loggingInterceptor = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BASIC
}
}

0 comments on commit 930eb02

Please sign in to comment.