File tree 1 file changed +7
-0
lines changed
utils/core/src/main/kotlin
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import java.io.File
23
23
import java.io.IOException
24
24
import java.time.Duration
25
25
import java.util.concurrent.ConcurrentHashMap
26
+ import java.util.logging.Level
27
+ import java.util.logging.Logger
26
28
27
29
import kotlin.coroutines.resume
28
30
import kotlin.coroutines.resumeWithException
@@ -72,6 +74,11 @@ object OkHttpClientHelper {
72
74
private val defaultClient by lazy {
73
75
installAuthenticatorAndProxySelector()
74
76
77
+ if (log.delegate.isDebugEnabled) {
78
+ // Allow to track down leaked connections.
79
+ Logger .getLogger(OkHttpClient ::javaClass.name).level = Level .FINE
80
+ }
81
+
75
82
val cacheDirectory = ortDataDirectory.resolve(CACHE_DIRECTORY )
76
83
val cache = Cache (cacheDirectory, MAX_CACHE_SIZE_IN_BYTES )
77
84
val specs = listOf (ConnectionSpec .MODERN_TLS , ConnectionSpec .COMPATIBLE_TLS , ConnectionSpec .CLEARTEXT )
You can’t perform that action at this time.
0 commit comments