[libvirt] [PATCH 3/3] Filter out certain expected error messages from libvirtd

Eric Blake eblake at redhat.com
Fri Jan 21 18:06:05 UTC 2011


On 01/21/2011 10:30 AM, Daniel P. Berrange wrote:
> Add a hook to the error reporting APIs to allow specific
> error messages to be filtered out. Wire up libvirtd to
> remove VIR_ERR_NO_DOMAIN & similar error codes from the
> logs. THey are still logged at DEBUG level.

s/THey/They/

> 
> * daemon/libvirtd.c: Filter VIR_ERR_NO_DOMAIN and friends
> * src/libvirt_private.syms, src/util/virterror.c,
>   src/util/virterror_internal.h: Hook for changing error
>   reporting level
> ---
>  daemon/libvirtd.c             |   25 +++++++++++++++++++++++++
>  src/libvirt_private.syms      |    1 +
>  src/util/virterror.c          |   26 ++++++++++++++++++--------
>  src/util/virterror_internal.h |    3 +++
>  4 files changed, 47 insertions(+), 8 deletions(-)

ACK, looks like a reasonable compromise over the full pollution vs. too
little information.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110121/b7d5eace/attachment-0001.sig>


More information about the libvir-list mailing list