Skip to content

Commit 253c3e8

Browse files
committed
Remove HTTP logging interceptor
1 parent 32bc7e4 commit 253c3e8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ test {
6060

6161
dependencies {
6262
compile 'com.squareup.okhttp3:okhttp:3.6.0'
63-
compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
6463
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.7'
6564

6665
testCompile 'org.mockito:mockito-core:2.5.4'

src/main/java/com/auth0/guardian/APIClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@
2626
import com.auth0.guardian.networking.RequestFactory;
2727
import okhttp3.HttpUrl;
2828
import okhttp3.OkHttpClient;
29-
import okhttp3.logging.HttpLoggingInterceptor;
3029

3130
class APIClient {
3231

3332
private final HttpUrl baseUrl;
3433
private final RequestFactory requestFactory;
3534

3635
APIClient(HttpUrl baseUrl) {
37-
this(baseUrl, new OkHttpClient.Builder().addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY)).build());
36+
this(baseUrl, new OkHttpClient());
3837
}
3938

4039
APIClient(HttpUrl baseUrl, OkHttpClient client) {

0 commit comments

Comments
 (0)