mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
util: Report error in virLogParseDefaultPriority
Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
c4b3e26d67
commit
3e54152d9f
@ -1187,6 +1187,10 @@ virLogParseDefaultPriority(const char *priority)
|
||||
return VIR_LOG_WARN;
|
||||
else if (STREQ(priority, "4") || STREQ(priority, "error"))
|
||||
return VIR_LOG_ERROR;
|
||||
|
||||
virReportError(VIR_ERR_INVALID_ARG,
|
||||
_("Failed to set logging priority, argument '%s' is "
|
||||
"invalid"), priority);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user