summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-01-21 12:12:18 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2020-01-21 12:12:18 -0800
commit22c75b5598e52ed76614463c909f00b3120ce285 (patch)
tree96ce6035223f735e16103ae795c7a503bd5ed227
parent4aa037b494e9faa3010ac3eb1a3dfa74ff0cc7c5 (diff)
parent355dcdaea390b8bbd03ed984d25de9558427370b (diff)
downloadgps-22c75b5598e52ed76614463c909f00b3120ce285.tar.gz
Merge "Correct DataItem logging in SSO::notify"
-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()) {