NetworkHelper: log real requests and responses (#7820)

This commit is contained in:
stevenyomi 2022-08-20 22:16:45 +08:00 committed by GitHub
parent 763288ab13
commit 2156844b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class NetworkHelper(context: Context) {
val httpLoggingInterceptor = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.HEADERS
}
builder.addInterceptor(httpLoggingInterceptor)
builder.addNetworkInterceptor(httpLoggingInterceptor)
}
when (preferences.dohProvider()) {