communicator: debug log more fields of the get page response (#12644)

It's helpful to correlate requests and responses in local investigations
where the issue is reproducible. Hence, log the rel, fork and block of
the get page response.
This commit is contained in:
Vlad Lazar
2025-07-22 12:25:11 +01:00
committed by GitHub
parent d91d018afa
commit 88bc06f148

View File

@@ -1820,12 +1820,12 @@ nm_to_string(NeonMessage *msg)
} }
case T_NeonGetPageResponse: case T_NeonGetPageResponse:
{ {
#if 0
NeonGetPageResponse *msg_resp = (NeonGetPageResponse *) msg; NeonGetPageResponse *msg_resp = (NeonGetPageResponse *) msg;
#endif
appendStringInfoString(&s, "{\"type\": \"NeonGetPageResponse\""); appendStringInfoString(&s, "{\"type\": \"NeonGetPageResponse\"");
appendStringInfo(&s, ", \"page\": \"XXX\"}"); appendStringInfo(&s, ", \"rinfo\": %u/%u/%u", RelFileInfoFmt(msg_resp->req.rinfo));
appendStringInfo(&s, ", \"forknum\": %d", msg_resp->req.forknum);
appendStringInfo(&s, ", \"blkno\": %u", msg_resp->req.blkno);
appendStringInfoChar(&s, '}'); appendStringInfoChar(&s, '}');
break; break;
} }