diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-20 13:18:34 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-03-20 13:18:34 -0500 |
commit | 9c061ec3b23dc828ecdf8a14ecfdb0a6627f7c32 (patch) | |
tree | 84b94d8caef570df4a6b17e6d5a7dd3db282199e /src/snap.cpp | |
parent | 75729a4dda25141e860128ef3547c5946f7c4a5d (diff) | |
download | ayatana-indicator-datetime-9c061ec3b23dc828ecdf8a14ecfdb0a6627f7c32.tar.gz ayatana-indicator-datetime-9c061ec3b23dc828ecdf8a14ecfdb0a6627f7c32.tar.bz2 ayatana-indicator-datetime-9c061ec3b23dc828ecdf8a14ecfdb0a6627f7c32.zip |
add debug logging of what capabilities the notification server said it supports.
Diffstat (limited to 'src/snap.cpp')
-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 5cf6063..5df31c9 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; } |