[rygel] core: More debug log from browse in action
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: More debug log from browse in action
- Date: Mon, 19 Jul 2010 17:50:36 +0000 (UTC)
commit 303d7ddc9941c0027d092c567e4c58c14598f069
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jul 15 18:48:38 2010 +0300
core: More debug log from browse in action
src/rygel/rygel-browse.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-browse.vala b/src/rygel/rygel-browse.vala
index 39ed81d..33c9ab5 100644
--- a/src/rygel/rygel-browse.vala
+++ b/src/rygel/rygel-browse.vala
@@ -146,6 +146,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
if (this.object_id == this.root_container.id) {
return this.root_container;
} else {
+ debug ("searching for object '%s'..", this.object_id);
var media_object = yield this.root_container.find_object (
this.object_id,
this.cancellable);
@@ -153,6 +154,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
throw new ContentDirectoryError.NO_SUCH_OBJECT (
_("No such object"));
}
+ debug ("object '%s' found.", this.object_id);
return media_object;
}
@@ -193,10 +195,18 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
this.requested_count = this.total_matches;
}
+ debug ("Fetching %u children of container '%s' from index %u..",
+ this.requested_count,
+ this.object_id,
+ this.index);
var children = yield container.get_children (this.index,
this.requested_count,
this.cancellable);
this.number_returned = children.size;
+ debug ("Fetched %u children of container '%s' from index %u.",
+ this.requested_count,
+ this.object_id,
+ this.index);
return children;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]