[libvirt-users] libvirt printing to stderr
Albert Hopkins
marduk at letterboxes.org
Mon Dec 13 05:43:20 UTC 2010
I'm writing an app and using the Python bindings for libvirt.
Everything is fine but, in some cases I need to call lookupByName().
There are a lot of times when the name will not exist, I trap the
exception, however I still get this message printed to stderr:
libvir: QEMU error : Domain not found: no domain with matching name
'foo'
Is there any way to turn this off? This is a command-line program so
the extra output makes the interface confusing.
I've tried re-assigning sys.stderr before calling lookupByName(), but
that doesn't seem to have any affect.
tia,
-albert
More information about the libvirt-users
mailing list