Enable verbose logging and log response body (#3063)

This commit is contained in:
Vivek Maskara 2019-07-11 14:25:49 +05:30 committed by Josephine Lim
parent 828b5a3cd1
commit 98c7b9d961
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ public class CommonsApplication extends Application {
String logFileName = isBeta ? "CommonsBetaAppLogs" : "CommonsAppLogs";
String logDirectory = LogUtils.getLogDirectory();
FileLoggingTree tree = new FileLoggingTree(
Log.DEBUG,
Log.VERBOSE,
logFileName,
logDirectory,
1000,

View file

@ -31,7 +31,7 @@ public final class OkHttpConnectionFactory {
return new OkHttpClient.Builder()
.cookieJar(SharedPreferenceCookieManager.getInstance())
.cache(NET_CACHE)
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BASIC))
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
.addInterceptor(new UnsuccessfulResponseInterceptor())
.addInterceptor(new CommonHeaderRequestInterceptor())
.build();