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

[libvirt] [PATCH] systemd: add debug message when virDBusCallMethod failed



Generate debug message when systemd doesn't support
interface org.freedesktop.machine1.Manager.

Signed-off-by: Gao feng <gaofeng cn fujitsu com>
---
 src/util/virsystemd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
index 3e69ef6..c631557 100644
--- a/src/util/virsystemd.c
+++ b/src/util/virsystemd.c
@@ -233,6 +233,7 @@ int virSystemdCreateMachine(const char *name,
         if (err->code == VIR_ERR_DBUS_SERVICE &&
             STREQ(err->str2, "org.freedesktop.DBus.Error.ServiceUnknown")) {
             virResetLastError();
+            VIR_DEBUG("systemd doesn't support interface org.freedesktop.machine1.Manager");
             ret = -2;
         }
         goto cleanup;
-- 
1.8.3.1


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