]> git.proxmox.com Git - mirror_qemu.git/commit
python/aqmp: add _cb_inbound and _cb_outbound logging hooks
authorJohn Snow <jsnow@redhat.com>
Wed, 15 Sep 2021 16:29:39 +0000 (12:29 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Sep 2021 16:10:29 +0000 (12:10 -0400)
commit12c7a57f5be577b6bb28c8526122cc51ad40a12b
tree293c1f8782d942cd252213e40281b1b1425b1bda
parent2686ac131634365899570bd8b8df99ae50354e79
python/aqmp: add _cb_inbound and _cb_outbound logging hooks

Add hooks designed to log/filter incoming/outgoing messages. The primary
intent for these is to be able to support iotests which may want to log
messages with specific filters for reproducible output.

Another use is for plugging into Urwid frameworks; all messages in/out
can be automatically added to a rendering list for the purposes of a
qmp-shell like tool.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20210915162955.333025-12-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/protocol.py