mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user