[libvirt] [PATCH] Log virRun command output, return with error

Cole Robinson crobinso at redhat.com
Tue Sep 23 20:56:45 UTC 2008


The attached patch adds some extra logging to the
virRun command. The full argv is now logged with
DEBUG, as well as the commands stdout and stderr
(if anything is found).

Also, if the command returns an error, we raise
the stderr content with the reported error msg.
This will significantly help with debugging certain
issues, particularly with the storage driver which
makes heavy use of virRun.

Thanks,
Cole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-virRun-logging.patch
Type: text/x-patch
Size: 2303 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080923/de2bd71f/attachment-0001.bin>


More information about the libvir-list mailing list