File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
client/src/main/java/io/avaje/http/client Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ final class DHttpClientContext implements HttpClientContext {
33
33
private final boolean withAuthToken ;
34
34
private final AuthTokenProvider authTokenProvider ;
35
35
private final AtomicReference <AuthToken > tokenRef = new AtomicReference <>();
36
- private int loggingMaxBody = 1_000 ;
37
36
38
37
private final LongAdder metricResTotal = new LongAdder ();
39
38
private final LongAdder metricResError = new LongAdder ();
@@ -316,6 +315,6 @@ private String authToken() {
316
315
}
317
316
318
317
String maxResponseBody (String body ) {
319
- return body .length () > loggingMaxBody ? body .substring (0 , loggingMaxBody ) + " <truncated> ..." : body ;
318
+ return body .length () > 1_000 ? body .substring (0 , 1_000 ) + " <truncated> ..." : body ;
320
319
}
321
320
}
You can’t perform that action at this time.
0 commit comments