1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-26 06:43:09 +03:00

Add a LoggingEventListener and use it in okcurl (#4353)

* Add LoggingEventListener and use it in okcurl

* Fix tests failing in IP6 environment

* Make less assumptions about test environment

* Disable retry in test to make test sequence more predictable

* Fix javadoc compilation

There seems to be inconsistency between javdoc parsing between 'mvn verify' and Travis CI. Before the change, 'mvn clean verify' passes but Travis CI fails due to missing import of okhttp3.OkHttpClient. Just adding the missing import, causes 'mvn verify' to fail die to unused import. Changing the line wrapping seems to appease 'mvn verify'.

* Address comments

* Remove unused imports
This commit is contained in:
Amir Livneh
2018-11-13 21:58:22 -05:00
committed by Jesse Wilson
parent 8a01554770
commit ef34a41d09
5 changed files with 430 additions and 1 deletions

View File

@@ -807,7 +807,7 @@ public final class HttpLoggingInterceptorTest {
return new Request.Builder().url(url);
}
private static class LogRecorder implements HttpLoggingInterceptor.Logger {
static class LogRecorder implements HttpLoggingInterceptor.Logger {
private final List<String> logs = new ArrayList<>();
private int index;