diff options
author | Alexander Kutsan (GitHub) <akutsan@luxoft.com> | 2017-08-30 18:54:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 18:54:12 +0300 |
commit | ad4788295c2be1ac1d131eb25767937fe876eb01 (patch) | |
tree | 1672f6159a9aad53b81b19c16d97fec31cc941a9 /src/components/policy/policy_regular | |
parent | b36caa440e0222141cabe4d0da206f3c08ff2501 (diff) | |
parent | ff0b9a7e0387ff44a99e8d8d080fe788ee9b9d9f (diff) | |
download | sdl_core-ad4788295c2be1ac1d131eb25767937fe876eb01.tar.gz |
Merge pull request #256 from dev-gh/feature/Resources_releasing_additional_cases_and_unsubscription
Feature/resources releasing additional cases and unsubscription
Diffstat (limited to 'src/components/policy/policy_regular')
-rw-r--r-- | src/components/policy/policy_regular/src/cache_manager.cc | 2 | ||||
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/src/cache_manager.cc b/src/components/policy/policy_regular/src/cache_manager.cc index decf526677..78674c81f3 100644 --- a/src/components/policy/policy_regular/src/cache_manager.cc +++ b/src/components/policy/policy_regular/src/cache_manager.cc @@ -233,6 +233,8 @@ bool CacheManager::ApplyUpdate(const policy_table::Table& update_pt) { for (; iter != iter_end; ++iter) { if (iter->second.is_null()) { + pt_->policy_table.app_policies_section.apps[iter->first] = + policy_table::ApplicationParams(); pt_->policy_table.app_policies_section.apps[iter->first].set_to_null(); pt_->policy_table.app_policies_section.apps[iter->first].set_to_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 75989e113c..6716da2983 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -152,6 +152,9 @@ void PolicyManagerImpl::CheckTriggers() { bool PolicyManagerImpl::LoadPT(const std::string& file, const BinaryMessage& pt_content) { LOG4CXX_INFO(logger_, "LoadPT of size " << pt_content.size()); + LOG4CXX_DEBUG( + logger_, + "PTU content is: " << std::string(pt_content.begin(), pt_content.end())); #ifdef USE_HMI_PTU_DECRYPTION // Assuemes Policy Table was parsed, formatted, and/or decrypted by |