mirror of https://github.com/grpc/grpc-java.git
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:
parent
dae078c0a6
commit
a5db67d0cb
|
|
@ -154,8 +154,8 @@ final class ServletServerStream extends AbstractServerStream {
|
|||
|
||||
@Override
|
||||
public void deframeFailed(Throwable cause) {
|
||||
if (logger.isLoggable(FINE)) {
|
||||
logger.log(FINE, String.format("[{%s}] Exception processing message", logId), cause);
|
||||
if (logger.isLoggable(WARNING)) {
|
||||
logger.log(WARNING, String.format("[{%s}] Exception processing message", logId), cause);
|
||||
}
|
||||
cancel(Status.fromThrowable(cause));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue