Skip to content

Commit 35084af

Browse files
committed
Remove logging before errors thrown in S2AStub.
1 parent 1d41d10 commit 35084af

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

s2a/src/main/java/io/grpc/s2a/handshaker/S2AStub.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ public SessionResp send(SessionReq req) throws IOException, InterruptedException
100100
}
101101
responses.clear();
102102
if (exception != null) {
103-
logger.log(
104-
Level.WARNING,
105-
"Received an unexpected response from a host at the S2A's address. The S2A might be"
106-
+ " unavailable. "
107-
+ exception.getMessage());
108103
throw new IOException(
109104
"Received an unexpected response from a host at the S2A's address. The S2A might be"
110105
+ " unavailable."
@@ -115,7 +110,6 @@ public SessionResp send(SessionReq req) throws IOException, InterruptedException
115110
try {
116111
writer.onNext(req);
117112
} catch (RuntimeException e) {
118-
logger.log(Level.WARNING, "Error occurred while writing to the S2A.", e);
119113
writer.onError(e);
120114
responses.offer(Result.createWithThrowable(e));
121115
}
@@ -172,7 +166,6 @@ public void onNext(SessionResp resp) {
172166
*/
173167
@Override
174168
public void onError(Throwable t) {
175-
logger.log(Level.WARNING, "Error occurred while reading from the S2A.", t);
176169
responses.offer(Result.createWithThrowable(t));
177170
}
178171

0 commit comments

Comments
 (0)