From d411313ba09987c0ec827d38f6c49d3ef1341edf Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Tue, 21 Dec 2010 23:16:19 +0200 Subject: [PATCH] core: Some debug log from SimpleContainer.add_child_container() --- src/rygel/rygel-simple-container.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rygel/rygel-simple-container.vala b/src/rygel/rygel-simple-container.vala index 3b04ee3..01cafee 100644 --- a/src/rygel/rygel-simple-container.vala +++ b/src/rygel/rygel-simple-container.vala @@ -62,6 +62,9 @@ public class Rygel.SimpleContainer : Rygel.MediaContainer, if (child.child_count > 0) { this.add_child (child); } else { + debug ("Container '%s' empty, refusing to add to hierarchy " + + "until it has any children to offer.", + child.id); this.empty_children.add (child); child.container_updated.connect (this.on_container_updated); } @@ -138,6 +141,9 @@ public class Rygel.SimpleContainer : Rygel.MediaContainer, this.add_child (updated); this.updated (); + + debug ("Container '%s' now non-empty, added it to hierarchy now.", + updated.id); } } } -- 2.7.4