Skip to content

Commit

Permalink
Remove logging before errors thrown in S2AStub.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Sep 9, 2024
1 parent 1d41d10 commit 35084af
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions s2a/src/main/java/io/grpc/s2a/handshaker/S2AStub.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ public SessionResp send(SessionReq req) throws IOException, InterruptedException
}
responses.clear();
if (exception != null) {
logger.log(
Level.WARNING,
"Received an unexpected response from a host at the S2A's address. The S2A might be"
+ " unavailable. "
+ exception.getMessage());
throw new IOException(
"Received an unexpected response from a host at the S2A's address. The S2A might be"
+ " unavailable."
Expand All @@ -115,7 +110,6 @@ public SessionResp send(SessionReq req) throws IOException, InterruptedException
try {
writer.onNext(req);
} catch (RuntimeException e) {
logger.log(Level.WARNING, "Error occurred while writing to the S2A.", e);
writer.onError(e);
responses.offer(Result.createWithThrowable(e));
}
Expand Down Expand Up @@ -172,7 +166,6 @@ public void onNext(SessionResp resp) {
*/
@Override
public void onError(Throwable t) {
logger.log(Level.WARNING, "Error occurred while reading from the S2A.", t);
responses.offer(Result.createWithThrowable(t));
}

Expand Down

0 comments on commit 35084af

Please sign in to comment.