NetworkHelper: log real requests and responses (#7820)
(cherry picked from commit 2156844b87ba0fea303ba6dc160da61cf7d9dc95)
This commit is contained in:
parent
595380f81d
commit
3ca2174c65
@ -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()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user