Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 197c86e

Browse files
committed
Add LogInterceptor as NetworkInterceptor
1 parent c0d2e20 commit 197c86e

File tree

1 file changed

+1
-1
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http

1 file changed

+1
-1
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/HttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public List<Cookie> loadForRequest(HttpUrl url) {
111111
};
112112

113113
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder()
114-
.addInterceptor(getLogInterceptor())
114+
.addNetworkInterceptor(getLogInterceptor())
115115
.protocols(Arrays.asList(Protocol.HTTP_1_1))
116116
.readTimeout(HttpConstants.DEFAULT_DATA_TIMEOUT, TimeUnit.MILLISECONDS)
117117
.writeTimeout(HttpConstants.DEFAULT_DATA_TIMEOUT, TimeUnit.MILLISECONDS)

0 commit comments

Comments
 (0)