Blame SOURCES/0034-utils-Improve-log-message-when-subnode-is-not-found.patch

546e1e
From 5a41846ba6e0d88a0a641caa214703336e2b2820 Mon Sep 17 00:00:00 2001
546e1e
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
546e1e
Date: Mon, 18 Sep 2017 10:47:13 -0300
546e1e
Subject: [PATCH] utils: Improve log message when subnode is not found
546e1e
546e1e
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
546e1e
---
546e1e
 govirt/ovirt-utils.c | 3 ++-
546e1e
 1 file changed, 2 insertions(+), 1 deletion(-)
546e1e
546e1e
diff --git a/govirt/ovirt-utils.c b/govirt/ovirt-utils.c
546e1e
index af1dfc6..a60c754 100644
546e1e
--- a/govirt/ovirt-utils.c
546e1e
+++ b/govirt/ovirt-utils.c
546e1e
@@ -63,9 +63,10 @@ ovirt_rest_xml_node_find(RestXmlNode *node, const char *path)
546e1e
     pathv = g_strsplit(path, "/", -1);
546e1e
 
546e1e
     for (i = 0; i < g_strv_length(pathv); ++i) {
546e1e
+        gchar *name = node->name;
546e1e
         node = rest_xml_node_find(node, pathv[i]);
546e1e
         if (node == NULL) {
546e1e
-            g_debug("could not find XML node '%s'", pathv[i]);
546e1e
+            g_debug("could not find subnode '%s' of XML node '%s' (search: %s)", pathv[i], name, path);
546e1e
             break;
546e1e
         }
546e1e
     }
546e1e
-- 
546e1e
2.14.4
546e1e