Added additional logging for proto deserialization failure

pull/26159/head
Alisha Nanda 4 years ago
parent 89fd647237
commit 31f4e6e3c8
No known key found for this signature in database
GPG Key ID: FAFBAD4BF438BC17
  1. 1
      include/grpcpp/impl/codegen/proto_utils.h

@ -84,6 +84,7 @@ Status GenericDeserialize(ByteBuffer* buffer,
return reader.status();
}
if (!msg->ParseFromZeroCopyStream(&reader)) {
gpr_log(GPR_ERROR, "Failed to deserialize message");
result = Status(StatusCode::INTERNAL, msg->InitializationErrorString());
}
}

Loading…
Cancel
Save