diff --git a/turbo/src/main/kotlin/dev/hotwire/turbo/http/TurboHttpClient.kt b/turbo/src/main/kotlin/dev/hotwire/turbo/http/TurboHttpClient.kt index 7197ddaa..f8979801 100644 --- a/turbo/src/main/kotlin/dev/hotwire/turbo/http/TurboHttpClient.kt +++ b/turbo/src/main/kotlin/dev/hotwire/turbo/http/TurboHttpClient.kt @@ -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() @@ -64,8 +67,4 @@ object TurboHttpClient { return builder.build() } - - private val loggingInterceptor = HttpLoggingInterceptor().apply { - level = HttpLoggingInterceptor.Level.BASIC - } }