mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
daemon: Treat logging of VIR_ERR_MULTIPLE_INTERFACES same as VIR_ERR_NO_INTERFACE
When a query for an interface via virInterfaceLookupByMACString finds multiple interfaces an error is returned. Treat such error with the same 'debug' priority as we treat when the interface was not found to avoid spamming logs with such configurations. Closes: https://gitlab.com/libvirt/libvirt/-/issues/514 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
2b63b64ad9
commit
3a45a4d78c
@ -97,6 +97,7 @@ static int daemonErrorLogFilter(virErrorPtr err, int priority)
|
||||
case VIR_ERR_NO_STORAGE_VOL:
|
||||
case VIR_ERR_NO_NODE_DEVICE:
|
||||
case VIR_ERR_NO_INTERFACE:
|
||||
case VIR_ERR_MULTIPLE_INTERFACES:
|
||||
case VIR_ERR_NO_NWFILTER:
|
||||
case VIR_ERR_NO_NWFILTER_BINDING:
|
||||
case VIR_ERR_NO_SECRET:
|
||||
|
Loading…
x
Reference in New Issue
Block a user