chore(debug): add hex dump logging for received rpc messages
This commit is contained in:
parent
cdd9fe9a91
commit
61c6ad643f
4
clients/python/wcferry/client.py
vendored
4
clients/python/wcferry/client.py
vendored
@ -156,7 +156,9 @@ class Wcf():
|
|||||||
data = req.SerializeToString()
|
data = req.SerializeToString()
|
||||||
self.cmd_socket.send(data)
|
self.cmd_socket.send(data)
|
||||||
rsp = wcf_pb2.Response()
|
rsp = wcf_pb2.Response()
|
||||||
rsp.ParseFromString(self.cmd_socket.recv_msg().bytes)
|
bs = self.cmd_socket.recv_msg().bytes
|
||||||
|
self.LOG.debug(bs.hex())
|
||||||
|
rsp.ParseFromString(bs)
|
||||||
return rsp
|
return rsp
|
||||||
|
|
||||||
def is_receiving_msg(self) -> bool:
|
def is_receiving_msg(self) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user