Skip to content

Commit

Permalink
remove builder log noise (#9009)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr authored Jan 17, 2025
1 parent 8f8f9ec commit ad34920
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@

import java.io.IOException;
import okhttp3.Request;
import okhttp3.ResponseBody;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import tech.pegasys.teku.ethereum.executionclient.schema.Response;
import tech.pegasys.teku.infrastructure.async.SafeFuture;

public class ResponseHandlerVoid extends AbstractResponseHandler {
private static final Logger LOG = LogManager.getLogger();

final SafeFuture<Response<Void>> futureResponse = new SafeFuture<>();

@Override
Expand All @@ -36,14 +31,7 @@ void handleResponse(final Request request, final okhttp3.Response response) {
if (handleResponseError(request, response, futureResponse)) {
return;
}
try (final ResponseBody responseBody = response.body()) {
if (!bodyIsEmpty(responseBody)) {
LOG.warn("Response body was not empty [{}]", request.url());
}
futureResponse.complete(Response.fromNullPayload());
} catch (final Throwable ex) {
futureResponse.completeExceptionally(ex);
}
futureResponse.complete(Response.fromNullPayload());
}

public SafeFuture<Response<Void>> getFutureResponse() {
Expand Down

0 comments on commit ad34920

Please sign in to comment.