]> xenbits.xensource.com Git - libvirt.git/commitdiff
daemon: Suppress logging of VIR_ERR_NO_DOMAIN_METADATA
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 May 2015 11:55:30 +0000 (13:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 May 2015 12:18:39 +0000 (14:18 +0200)
Similarly to other error codes that notify the user that the object does
not exist lower the priority of VIR_ERR_NO_DOMAIN_METADATA to
VIR_LOG_DEBUG when writing the log entry.

daemon/libvirtd.c

index 107b88dc0ea84f8d6060198ac949e79e13b93be5..3e7f87c372137af871b31f543a994cfbad1aff7a 100644 (file)
@@ -320,6 +320,7 @@ static int daemonErrorLogFilter(virErrorPtr err, int priority)
     case VIR_ERR_NO_SECRET:
     case VIR_ERR_NO_DOMAIN_SNAPSHOT:
     case VIR_ERR_OPERATION_INVALID:
+    case VIR_ERR_NO_DOMAIN_METADATA:
         return VIR_LOG_DEBUG;
     }