]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Do not log invalid operations in libvirtd logs
authorDaniel Veillard <veillard@redhat.com>
Tue, 13 Sep 2011 10:24:13 +0000 (18:24 +0800)
committerDaniel Veillard <veillard@redhat.com>
Tue, 13 Sep 2011 10:24:13 +0000 (18:24 +0800)
commit7f2498efe45505135ed75c6548c21a89674cb6ba
treedd2aca746017a45bd5c849ef83aac90d9f0604d5
parentafc984af2e055b33f7c7b06ccacaf00103d4ce5e
Do not log invalid operations in libvirtd logs

  This is a bit painful for example when starting virt-manager
it tends to clutter libvirtd.log with invalid operation on cpu pinning
for defined but not running domains. A priori those kind of errors
don't indicate an error when executing the command but on a precondition
for running the API, and honnestly while the application should report
it, logging it as an error in libvirtd.log is not really useful,

   Related bug: https://bugzilla.redhat.com/show_bug.cgi?id=590807

* daemon/libvirtd.c: extend daemonErrorLogFilter() to filter out
   errors of type VIR_ERR_OPERATION_INVALID
daemon/libvirtd.c