NetworkModule: hide different logging levels under comments to not look every time in documentation

This commit is contained in:
Alibek Omarov 2020-04-26 16:42:45 +03:00
parent 4141030d2e
commit 0c393585bd
1 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,11 @@ class NetworkModule {
.apply {
addInterceptor(InstanceSwitchAuthInterceptor(accountManager))
if (BuildConfig.DEBUG) {
addInterceptor(HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BASIC })
addInterceptor(HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BASIC
//level = HttpLoggingInterceptor.Level.HEADERS
//level = HttpLoggingInterceptor.Level.BODY
})
}
}
.build()