diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-21 05:22:55 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-21 05:22:55 +0000 |
commit | c776ee03735adb18dfa2720f6fdfe8c66a2ef0f6 (patch) | |
tree | 6fa69b64c1eec87a0a4334f848713dd901bcb172 | |
parent | c64ae00610f8f607bb1c155c198a081cb2a09f95 (diff) | |
parent | 9c061ec3b23dc828ecdf8a14ecfdb0a6627f7c32 (diff) | |
download | ayatana-indicator-datetime-c776ee03735adb18dfa2720f6fdfe8c66a2ef0f6.tar.gz ayatana-indicator-datetime-c776ee03735adb18dfa2720f6fdfe8c66a2ef0f6.tar.bz2 ayatana-indicator-datetime-c776ee03735adb18dfa2720f6fdfe8c66a2ef0f6.zip |
Add debug logging of what capabilities the notification server said it supports. Fixes: 1295271
-rw-r--r-- | src/snap.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index 899581b..3ab2941 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -186,8 +186,16 @@ std::set<std::string> get_server_caps() { std::set<std::string> caps_set; auto caps_gl = notify_get_server_caps(); + std::string caps_str; for(auto l=caps_gl; l!=nullptr; l=l->next) + { caps_set.insert((const char*)l->data); + + caps_str += (const char*) l->data;; + if (l->next != nullptr) + caps_str += ", "; + } + g_debug ("%s notify_get_server() returned [%s]", G_STRFUNC, caps_str.c_str()); g_list_free_full(caps_gl, g_free); return caps_set; } |