Set tag for OkHttp logs

This commit is contained in:
Kirill Kamakin
2021-11-07 12:34:37 +03:00
parent 9afc7bdcd3
commit ae74dac851

View File

@@ -14,7 +14,7 @@ class OkHttpBuilder @Inject constructor() {
} }
private fun buildLoggingInterceptor() : Interceptor { private fun buildLoggingInterceptor() : Interceptor {
val interceptor = HttpLoggingInterceptor { message -> Timber.v(message) } val interceptor = HttpLoggingInterceptor { message -> Timber.tag("OkHttp").v(message) }
interceptor.level = HttpLoggingInterceptor.Level.BODY interceptor.level = HttpLoggingInterceptor.Level.BODY
return interceptor return interceptor
} }