File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed
clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ public boolean isDebugging() {
106
106
107
107
/**
108
108
* Set the log level of the requester
109
+ *
109
110
* @return ApiClient
110
111
*/
111
112
public ApiClient setLogLevel (LogLevel level ) {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public HttpRequester() {
30
30
this .loggingInterceptor = new HttpLoggingInterceptor ();
31
31
loggingInterceptor .setLevel (LogLevel .NONE .value ());
32
32
builder .addInterceptor (this .loggingInterceptor );
33
-
33
+
34
34
builder .retryOnConnectionFailure (false );
35
35
36
36
httpClient = builder .build ();
Original file line number Diff line number Diff line change 3
3
import okhttp3 .logging .HttpLoggingInterceptor .Level ;
4
4
5
5
public enum LogLevel {
6
- /**
7
- * No logs.
8
- */
6
+ /** No logs. */
9
7
NONE (Level .NONE ),
10
8
11
- /**
12
- * Logs request and response lines and their respective headers.
13
- */
9
+ /** Logs request and response lines and their respective headers. */
14
10
HEADERS (Level .HEADERS ),
15
11
16
- /**
17
- * Logs request and response lines and their respective headers and bodies (if present).
18
- */
12
+ /** Logs request and response lines and their respective headers and bodies (if present). */
19
13
BODY (Level .BODY ),
20
14
21
- /**
22
- * Logs request and response lines.
23
- */
15
+ /** Logs request and response lines. */
24
16
BASIC (Level .BASIC );
25
17
26
18
private Level value ;
You can’t perform that action at this time.
0 commit comments