summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingjie Wang <yingjiewang@codeaurora.org>2020-01-17 10:10:18 +0800
committerYingjie Wang <yingjiewang@codeaurora.org>2020-01-21 09:24:32 +0800
commit355dcdaea390b8bbd03ed984d25de9558427370b (patch)
tree259237afa89a3c124d5c6c4c25fe153084c6576f
parentb8568baa07d27f2846ec0ceec3cbad5642b531df (diff)
downloadgps-355dcdaea390b8bbd03ed984d25de9558427370b.tar.gz
Correct DataItem logging in SSO::notify
We should log the copied DataItem with full fledged definition instead of the original incomplete one. Change-Id: I914e77f1d91de783ef8f4cddd885981a0c8e5008 CRs-fixed: 2604928
-rw-r--r--core/SystemStatusOsObserver.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/SystemStatusOsObserver.cpp b/core/SystemStatusOsObserver.cpp
index 0427380..b51a564 100644
--- a/core/SystemStatusOsObserver.cpp
+++ b/core/SystemStatusOsObserver.cpp
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -347,11 +347,6 @@ void SystemStatusOsObserver::notify(const list<IDataItemCore*>& dlist)
vector<IDataItemCore*> dataItemVec(dlist.size());
for (auto each : dlist) {
- IF_LOC_LOGD {
- string dv;
- each->stringify(dv);
- LOC_LOGD("notify: DataItem In Value:%s", dv.c_str());
- }
IDataItemCore* di = DataItemsFactoryProxy::createNewDataItem(each->getId());
if (nullptr == di) {
@@ -364,6 +359,11 @@ void SystemStatusOsObserver::notify(const list<IDataItemCore*>& dlist)
// add this dataitem if updated from last one
dataItemVec.push_back(di);
+ IF_LOC_LOGD {
+ string dv;
+ di->stringify(dv);
+ LOC_LOGd("notify: DataItem In Value:%s", dv.c_str());
+ }
}
if (!dataItemVec.empty()) {