NetworkHelper: log real requests and responses

This commit is contained in:
stevenyomi 2022-08-20 02:32:06 +08:00 committed by GitHub
parent 3760b310df
commit 5749a6986d
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()) {