[PATCH 1/8] util: Report error in virLogParseDefaultPriority

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux