From dc48054768b7cd03890cf083c61391cc86e3234f Mon Sep 17 00:00:00 2001 From: hyunho Date: Wed, 27 May 2020 21:08:45 +0900 Subject: [PATCH] Add log for watch change Change-Id: I2ec3efe834e8c1ae38e359787aa893d0e147d46e Signed-off-by: hyunho --- ambient-viewer/src/ambient-viewer.cc | 1 + watch-holder/src/watch.cc | 1 + 2 files changed, 2 insertions(+) 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) { -- 2.34.1