core: Some debug log from SimpleContainer.add_child_container()
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 21 Dec 2010 21:16:19 +0000 (23:16 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 21 Dec 2010 21:16:19 +0000 (23:16 +0200)
src/rygel/rygel-simple-container.vala

index 3b04ee3..01cafee 100644 (file)
@@ -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);
         }
     }
 }