summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2020-02-28 14:16:39 -0500
committerJackLivio <jack@livio.io>2020-02-28 14:16:39 -0500
commitf26da20cfa8a92370cfca0c5cd892d12ca065327 (patch)
treecbaf9116edf9ae3512bfc39f974d7ef0692db663
parentdd39efa5cf98baba8cf189d2992842f45cef64dc (diff)
downloadsdl_core-fix/set_ptu_snapshot_indentation.tar.gz
Remove intendation for policy table snapshotfix/set_ptu_snapshot_indentation
-rw-r--r--src/components/policy/policy_external/src/policy_manager_impl.cc1
-rw-r--r--src/components/policy/policy_regular/src/policy_manager_impl.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/src/policy_manager_impl.cc b/src/components/policy/policy_external/src/policy_manager_impl.cc
index cd2bd4c2d4..ecbe42238c 100644
--- a/src/components/policy/policy_external/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_external/src/policy_manager_impl.cc
@@ -708,6 +708,7 @@ void PolicyManagerImpl::RequestPTUpdate() {
if (IsPTValid(policy_table_snapshot, policy_table::PT_SNAPSHOT)) {
Json::Value value = policy_table_snapshot->ToJsonValue();
Json::StreamWriterBuilder writer_builder;
+ writer_builder["indentation"] = "";
std::string message_string = Json::writeString(writer_builder, value);
LOG4CXX_DEBUG(logger_, "Snapshot contents is : " << message_string);
diff --git a/src/components/policy/policy_regular/src/policy_manager_impl.cc b/src/components/policy/policy_regular/src/policy_manager_impl.cc
index 94c1009086..3ce3d34d73 100644
--- a/src/components/policy/policy_regular/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc
@@ -617,6 +617,7 @@ bool PolicyManagerImpl::RequestPTUpdate(const PTUIterationType iteration_type) {
Json::Value value = policy_table_snapshot->ToJsonValue();
Json::StreamWriterBuilder writer_builder;
+ writer_builder["indentation"] = "";
std::string message_string = Json::writeString(writer_builder, value);
LOG4CXX_DEBUG(logger_, "Snapshot contents is : " << message_string);