Skip to content

Commit 98c7b9d

Browse files
maskaravivekmisaochan
authored andcommitted
Enable verbose logging and log response body (commons-app#3063)
1 parent 828b5a3 commit 98c7b9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/fr/free/nrw/commons/CommonsApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private void initTimber() {
167167
String logFileName = isBeta ? "CommonsBetaAppLogs" : "CommonsAppLogs";
168168
String logDirectory = LogUtils.getLogDirectory();
169169
FileLoggingTree tree = new FileLoggingTree(
170-
Log.DEBUG,
170+
Log.VERBOSE,
171171
logFileName,
172172
logDirectory,
173173
1000,

app/src/main/java/fr/free/nrw/commons/OkHttpConnectionFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private static OkHttpClient createClient() {
3131
return new OkHttpClient.Builder()
3232
.cookieJar(SharedPreferenceCookieManager.getInstance())
3333
.cache(NET_CACHE)
34-
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BASIC))
34+
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
3535
.addInterceptor(new UnsuccessfulResponseInterceptor())
3636
.addInterceptor(new CommonHeaderRequestInterceptor())
3737
.build();

0 commit comments

Comments
 (0)