On Mon, Jul 07, 2014 at 02:17:43PM -0400, John Snow wrote:
>  QDict *qtest_qmp_receive(QTestState *s)
>  {
>      QMPResponseParser qmp;
> +    bool log = getenv("QTEST_LOG") != NULL;
>  
>      qmp.response = NULL;
>      json_message_parser_init(&qmp.parser, qmp_response);
> @@ -375,6 +377,9 @@ QDict *qtest_qmp_receive(QTestState *s)
>              exit(1);
>          }
>  
> +        if (log) {
> +            len = write(2, &c, 1);
> +        }
>          json_message_parser_feed(&qmp.parser, &c, 1);
>      }

Is the QMP command also logged or are we just logging the response?

Stefan

Attachment: pgpDDNLwNgXSR.pgp
Description: PGP signature

Reply via email to