[rygel] core: Useful debug messages on context (un)availability
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Useful debug messages on context (un)availability
- Date: Wed, 8 Jul 2009 17:01:14 +0000 (UTC)
commit 8dca34a8b3d8cbc340ac1191eb040e86c35f4449
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jul 8 17:14:49 2009 +0300
core: Useful debug messages on context (un)availability
src/rygel/rygel-main.vala | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index ae32fca..3033a66 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -97,6 +97,10 @@ public class Rygel.Main : Object {
GUPnP.Context context) {
string host_ip = null;
+ debug ("new network context %s (%s) available.",
+ context.name,
+ context.host_ip);
+
try {
host_ip = this.config.get_host_ip ();
} catch (GLib.Error err) {}
@@ -112,11 +116,19 @@ public class Rygel.Main : Object {
// Host UPnP dir
context.host_path (BuildConfig.DATA_DIR, "");
+ } else {
+ debug ("Ignoring network context %s (%s).",
+ context.name,
+ context.host_ip);
}
}
private void on_context_unavailable (GUPnP.ContextManager manager,
GUPnP.Context context) {
+ debug ("Network context %s (%s) now unavailable.",
+ context.name,
+ context.host_ip);
+
foreach (var factory in this.factories) {
if (context == factory.context) {
this.factories.remove (factory);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]