Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/util/virlog.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/util/virlog.c b/src/util/virlog.c
index ac35e36148c6..90d3d7c5cb53 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -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;
}
--
2.34.1