]> xenbits.xensource.com Git - libvirt.git/commitdiff
daemon: Add VIR_ERR_NO_SERVER and VIR_ERR_NO_CLIENT to daemonErrorLogFilter
authorErik Skultety <eskultet@redhat.com>
Wed, 4 May 2016 07:30:58 +0000 (09:30 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 4 May 2016 07:30:58 +0000 (09:30 +0200)
Commits 52a2eef9 and 62be5486 forgot to add these errors to daemon's error
whitelist, i.e. in order to avoid log file pollution with errors like "Domain
not found" or "Server not found" in this case, since these events are valid
and expected to occur.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
daemon/libvirtd.c

index f0fdaedb747257f6f6265b7be154bfe48ef20e14..cc5190f096975634623349a8f793e08f09016133 100644 (file)
@@ -333,6 +333,8 @@ static int daemonErrorLogFilter(virErrorPtr err, int priority)
     case VIR_ERR_NO_DOMAIN_SNAPSHOT:
     case VIR_ERR_OPERATION_INVALID:
     case VIR_ERR_NO_DOMAIN_METADATA:
+    case VIR_ERR_NO_SERVER:
+    case VIR_ERR_NO_CLIENT:
         return VIR_LOG_DEBUG;
     }