diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2018-04-18 13:15:01 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2018-04-18 13:15:01 -0400 |
commit | d7fab1574f0884424779b4d31c70e8af66b3ee23 (patch) | |
tree | d4877cfdde7c08de21bbb7693d4f59ed0f41c0f4 /src/components/policy/policy_regular | |
parent | 61ab847b12ecfef12062829832635f1893df0f16 (diff) | |
parent | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f (diff) | |
download | sdl_core-d7fab1574f0884424779b4d31c70e8af66b3ee23.tar.gz |
Merge branch 'master' into develop
Diffstat (limited to 'src/components/policy/policy_regular')
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 10 |
1 files changed, 8 insertions, 2 deletions
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 39b303cbb5..3e08147a4c 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -196,7 +196,10 @@ bool PolicyManagerImpl::LoadPT(const std::string& file, utils::SharedPtr<policy_table::Table> policy_table_snapshot = cache_->GenerateSnapshot(); if (!policy_table_snapshot) { - LOG4CXX_ERROR(logger_, "Failed to create snapshot of policy table"); + LOG4CXX_ERROR( + logger_, + "Failed to create snapshot of policy table, trying another exchange"); + ForcePTExchange(); return false; } @@ -209,7 +212,10 @@ bool PolicyManagerImpl::LoadPT(const std::string& file, // Replace current data with updated if (!cache_->ApplyUpdate(*pt_update)) { - LOG4CXX_WARN(logger_, "Unsuccessful save of updated policy table."); + LOG4CXX_WARN( + logger_, + "Unsuccessful save of updated policy table, trying another exchange"); + ForcePTExchange(); return false; } |