NetworkHelper: log real requests and responses (#7820)

(cherry picked from commit 2156844b87ba0fea303ba6dc160da61cf7d9dc95)
This commit is contained in:
stevenyomi 2022-08-20 22:16:45 +08:00 committed by Jobobby04
parent 595380f81d
commit 3ca2174c65

View File

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