mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Have OkHttp Logs at verbose level (#2893)
This commit is contained in:
parent
8ef99caa81
commit
84f0068bb7
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue