Add a little more debugging for async events

To make it easier to investigate problems with async event
delivery, add two more debugging lines

* daemon/remote.c: Debug when an event is queued for dispatch
* src/remote/remote_driver.c: Debug when an event is received
  for processing
This commit is contained in:
Daniel P. Berrange 2011-01-27 15:06:05 +00:00
parent 8ce5d404be
commit 2222bd2459
2 changed files with 3 additions and 0 deletions

View File

@ -5693,6 +5693,8 @@ remoteDispatchDomainEventSend (struct qemud_client *client,
msg->async = 1;
msg->bufferLength = len;
msg->bufferOffset = 0;
VIR_DEBUG("Queue event %d %d", procnr, msg->bufferLength);
qemudClientMessageQueuePush(&client->tx, msg);
qemudUpdateClientEvent(client);

View File

@ -9890,6 +9890,7 @@ processCallDispatch(virConnectPtr conn, struct private_data *priv,
break;
case REMOTE_MESSAGE: /* Async notifications */
VIR_DEBUG("Dispatch event %d %d", hdr.proc, priv->bufferLength);
rv = processCallDispatchMessage(conn, priv, flags & REMOTE_CALL_IN_OPEN,
&hdr, &xdr);
break;