Skip to content

Commit a5db67d

Browse files
niloc132ejona86
authored andcommittedNov 5, 2024·
Deframe failures should be logged on the server as warnings
This brings grpc-servlet in line with the grpc-netty implementation found in NettyServerStream.TransportState.
1 parent dae078c commit a5db67d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎servlet/src/main/java/io/grpc/servlet/ServletServerStream.java

+2-2
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
}

0 commit comments

Comments
 (0)
Please sign in to comment.