]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Filter out certain expected error messages from libvirtd
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 21 Jan 2011 17:25:01 +0000 (17:25 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 26 Jan 2011 14:54:23 +0000 (14:54 +0000)
commitb8786c06417c6a2a90e03006b35b21d899cc4157
treeaf55941305e3ee9292a65406ab2ed87d0679ec38
parentdbfca3ff70cffccd4d7b638028ca7ddc2fba3c86
Filter out certain expected error messages from libvirtd

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.

* 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
src/libvirt_private.syms
src/util/virterror.c
src/util/virterror_internal.h