[PATCH 7/8] Dispatch error in virInitialize

Erik Skultety eskultet at redhat.com
Wed Jan 5 11:51:24 UTC 2022


On Tue, Jan 04, 2022 at 02:47:11PM +0100, Martin Kletzander wrote:
> Callers that already do this anyway can be cleaned up thanks to this and the one
> that does not (daemon startup) gains the benefit of the error being printed to
> standard error output changing:
> 
> LIBVIRT_LOG_OUTPUTS=1:invalid libvirtd
> /home/nert/dev/libvirt/upstream/build/src/libvirtd: initialisation failed
> 
> into:
> 
> LIBVIRT_LOG_OUTPUTS=1:invalid libvirtd
> libvirt:  error : invalid argument: Invalid destination 'invalid' for output '1:invalid'
> /home/nert/dev/libvirt/upstream/build/src/libvirtd: initialisation failed
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list