Deframe failures should be logged on the server as warnings · grpc/grpc-java@a5db67d

File tree

1 file changed

lines changed

  • servlet/src/main/java/io/grpc/servlet

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -154,8 +154,8 @@ public void bytesRead(int numBytes) {

154154
155155

@Override

156156

public void deframeFailed(Throwable cause) {

157-

if (logger.isLoggable(FINE)) {

158-

logger.log(FINE, String.format("[{%s}] Exception processing message", logId), cause);

157+

if (logger.isLoggable(WARNING)) {

158+

logger.log(WARNING, String.format("[{%s}] Exception processing message", logId), cause);

159159

}

160160

cancel(Status.fromThrowable(cause));

161161

}