Have OkHttp Logs at verbose level (#2893)

This commit is contained in:
Vivek Maskara 2019-04-18 19:22:25 +05:30 committed by Josephine Lim
parent 8ef99caa81
commit 84f0068bb7

View file

@ -1,10 +1,8 @@
package fr.free.nrw.commons.di; package fr.free.nrw.commons.di;
import android.content.Context; import android.content.Context;
import android.net.Uri;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.wikipedia.json.GsonUtil; import org.wikipedia.json.GsonUtil;
@ -55,7 +53,7 @@ public class NetworkingModule {
@Singleton @Singleton
public HttpLoggingInterceptor provideHttpLoggingInterceptor() { public HttpLoggingInterceptor provideHttpLoggingInterceptor() {
HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(message -> { HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(message -> {
Timber.tag("OkHttp").d(message); Timber.tag("OkHttp").v(message);
}); });
httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY); httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
return httpLoggingInterceptor; return httpLoggingInterceptor;