[PATCH 2/3] daemon: Drop log level of VIR_ERR_NO_SUPPORT to debug

Peter Krempa via Devel posted 3 patches 1 week, 5 days ago
[PATCH 2/3] daemon: Drop log level of VIR_ERR_NO_SUPPORT to debug
Posted by Peter Krempa via Devel 1 week, 5 days ago
From: Peter Krempa <pkrempa@redhat.com>

The error code signals that the API the user called is not supported by
the driver. This can happen with some hypervisor drivers which don't
have everything implemented yet. There's no point in spamming the log
with it.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/805
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/remote/remote_daemon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c
index 1424d4cf5e..2973813548 100644
--- a/src/remote/remote_daemon.c
+++ b/src/remote/remote_daemon.c
@@ -108,6 +108,7 @@ static int daemonErrorLogFilter(virErrorPtr err, int priority)
     case VIR_ERR_NO_CLIENT:
     case VIR_ERR_NO_HOSTNAME:
     case VIR_ERR_NO_NETWORK_METADATA:
+    case VIR_ERR_NO_SUPPORT:
         return VIR_LOG_DEBUG;
     }

-- 
2.51.0