NetworkHelper: log real requests and responses (#7820)

(cherry picked from commit 2156844b87)
This commit is contained in:
stevenyomi
2022-08-20 22:16:45 +08:00
committed by Jobobby04
parent 595380f81d
commit 3ca2174c65
@@ -38,7 +38,7 @@ open /* SY <-- */ class NetworkHelper(context: Context) {
val httpLoggingInterceptor = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.HEADERS
}
builder.addInterceptor(httpLoggingInterceptor)
builder.addNetworkInterceptor(httpLoggingInterceptor)
}
when (preferences.dohProvider()) {