[rygel] core: Some debug log from SimpleContainer.add_child_container()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Some debug log from SimpleContainer.add_child_container()
- Date: Tue, 21 Dec 2010 21:47:09 +0000 (UTC)
commit d411313ba09987c0ec827d38f6c49d3ef1341edf
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Dec 21 23:16:19 2010 +0200
core: Some debug log from SimpleContainer.add_child_container()
src/rygel/rygel-simple-container.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
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);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]