From 59b942b2563c36ba9467e09514c0bd99143652d6 Mon Sep 17 00:00:00 2001 From: Sandboxed API Team Date: Wed, 9 Feb 2022 06:53:28 -0800 Subject: [PATCH] Add a little more logging to failure cases. PiperOrigin-RevId: 427459159 Change-Id: I34b6027cccfc4b3903ef4deeb9c133598b6667d4 --- sandboxed_api/sandbox2/comms.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sandboxed_api/sandbox2/comms.cc b/sandboxed_api/sandbox2/comms.cc index 482a6c8..9b27e0d 100644 --- a/sandboxed_api/sandbox2/comms.cc +++ b/sandboxed_api/sandbox2/comms.cc @@ -555,9 +555,11 @@ bool Comms::Recv(void* data, size_t len) { // Internal helper method (low level). bool Comms::RecvTL(uint32_t* tag, size_t* length) { if (!Recv(reinterpret_cast(tag), sizeof(*tag))) { + SAPI_RAW_VLOG(2, "RecvTL: Can't read tag"); return false; } if (!Recv(reinterpret_cast(length), sizeof(*length))) { + SAPI_RAW_VLOG(2, "RecvTL: Can't read length for tag %u", *tag); return false; } if (*length > GetMaxMsgSize()) {