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.
This commit is contained in:
Colin Alworth 2024-10-28 11:39:32 -05:00 committed by Eric Anderson
parent dae078c0a6
commit a5db67d0cb
1 changed files with 2 additions and 2 deletions

View File

@ -154,8 +154,8 @@ final class ServletServerStream extends AbstractServerStream {
@Override @Override
public void deframeFailed(Throwable cause) { public void deframeFailed(Throwable cause) {
if (logger.isLoggable(FINE)) { if (logger.isLoggable(WARNING)) {
logger.log(FINE, String.format("[{%s}] Exception processing message", logId), cause); logger.log(WARNING, String.format("[{%s}] Exception processing message", logId), cause);
} }
cancel(Status.fromThrowable(cause)); cancel(Status.fromThrowable(cause));
} }