diff options
author | JackLivio <jack@livio.io> | 2020-03-03 11:26:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 11:26:53 -0500 |
commit | 2327cd7da18a4f39f646cf02e9264b3782d5c59c (patch) | |
tree | a9dc2463dd2112d9409013b0525b1a917871e387 | |
parent | b0868c0a2de0d2210e7a8a7aa9e94f702fc5d01c (diff) | |
download | sdl_core-2327cd7da18a4f39f646cf02e9264b3782d5c59c.tar.gz |
Remove intendation for policy table snapshot (#3262)
-rw-r--r-- | src/components/policy/policy_external/src/policy_manager_impl.cc | 1 | ||||
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 1 |
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 81b3206093..5c1d8b0b01 100644 --- a/src/components/policy/policy_external/src/policy_manager_impl.cc +++ b/src/components/policy/policy_external/src/policy_manager_impl.cc @@ -715,6 +715,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 b2c7e61f98..8ea461ac41 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -620,6 +620,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); |