From: hyunho Date: Wed, 27 May 2020 12:08:45 +0000 (+0900) Subject: Add log for watch change X-Git-Tag: submit/tizen_5.5/20200528.045819^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc48054768b7cd03890cf083c61391cc86e3234f;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Add log for watch change Change-Id: I2ec3efe834e8c1ae38e359787aa893d0e147d46e Signed-off-by: hyunho --- diff --git a/ambient-viewer/src/ambient-viewer.cc b/ambient-viewer/src/ambient-viewer.cc index 92918ebf..96eb97b5 100644 --- a/ambient-viewer/src/ambient-viewer.cc +++ b/ambient-viewer/src/ambient-viewer.cc @@ -93,6 +93,7 @@ void AmbientViewer::OnChangedSignal(keynode_t *node, void *user_data) { try { Bundle data(safe_raw.get()); string appid = data.GetString(NOTIFY_CHANGED_EVENT_APPID_KEY); + LOGW("changed (%s)", appid.c_str()); if (!viewer->watch_stack_.empty()) { if (viewer->watch_stack_.back()->GetAppId() == appid) { LOGW("Already activated watch(%s)", appid.c_str()); diff --git a/watch-holder/src/watch.cc b/watch-holder/src/watch.cc index fd21051f..7f521cb8 100644 --- a/watch-holder/src/watch.cc +++ b/watch-holder/src/watch.cc @@ -173,6 +173,7 @@ int Watch::NotifyChangedEvent() const { tizen_base::Bundle b; b.Add(NOTIFY_CHANGED_EVENT_APPID_KEY, appid_); b.Add(NOTIFY_CHANGED_EVENT_RID_KEY, to_string(GetRid())); + LOGW("Notify Changed(%s)", appid_.c_str()); int ret = vconf_set_str( VCONFKEY_WATCH_CURRENT_WATCH_INFO, (const char*)b.ToRaw().first.get()); if (ret != 0) {