diff options
author | AKalinich-Luxoft <AKalinich@luxoft.com> | 2017-06-16 15:29:03 +0300 |
---|---|---|
committer | AKalinich-Luxoft <AKalinich@luxoft.com> | 2017-06-16 15:29:03 +0300 |
commit | 36a37e964f03b3c01decee10c80a67b8c5ec1590 (patch) | |
tree | 518feee47c92d011bd0f84aeb6954f53d2887b6e | |
parent | 045a313b4d99b6141ae99e71ff0e9d1d20520a1c (diff) | |
download | sdl_core-36a37e964f03b3c01decee10c80a67b8c5ec1590.tar.gz |
Fixed logger messages context
-rw-r--r-- | src/components/policy/policy_external/src/sql_pt_representation.cc | 8 | ||||
-rw-r--r-- | src/components/policy/policy_regular/src/sql_pt_representation.cc | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/components/policy/policy_external/src/sql_pt_representation.cc b/src/components/policy/policy_external/src/sql_pt_representation.cc index 5a3233b67d..95c07e6aef 100644 --- a/src/components/policy/policy_external/src/sql_pt_representation.cc +++ b/src/components/policy/policy_external/src/sql_pt_representation.cc @@ -1265,7 +1265,7 @@ bool SQLPTRepresentation::SaveConsumerFriendlyMessages( // the current local consumer_friendly_messages section shall be maintained in // the policy table. So it won't be changed/updated if (!messages.messages.is_initialized()) { - LOG4CXX_INFO(logger_, "Messages list is empty"); + LOG4CXX_INFO(logger_, "ConsumerFriendlyMessages messages list is empty"); return true; } @@ -1276,18 +1276,18 @@ bool SQLPTRepresentation::SaveConsumerFriendlyMessages( } if (!delete_query_exec_result) { - LOG4CXX_WARN(logger_, "Incorrect delete from message."); + LOG4CXX_WARN(logger_, "Failed to delete messages from DB."); return false; } if (!query.Prepare(sql_pt::kUpdateVersion)) { - LOG4CXX_WARN(logger_, "Incorrect update statement for version."); + LOG4CXX_WARN(logger_, "Invalid update messages version statement."); return false; } query.Bind(0, messages.version); if (!query.Exec()) { - LOG4CXX_WARN(logger_, "Incorrect update into version."); + LOG4CXX_WARN(logger_, "Failed to update messages version number in DB."); return false; } diff --git a/src/components/policy/policy_regular/src/sql_pt_representation.cc b/src/components/policy/policy_regular/src/sql_pt_representation.cc index e0c8747c16..a9ecc87053 100644 --- a/src/components/policy/policy_regular/src/sql_pt_representation.cc +++ b/src/components/policy/policy_regular/src/sql_pt_representation.cc @@ -1176,7 +1176,7 @@ bool SQLPTRepresentation::SaveConsumerFriendlyMessages( // the current local consumer_friendly_messages section shall be maintained in // the policy table. So it won't be changed/updated if (!messages.messages.is_initialized()) { - LOG4CXX_INFO(logger_, "Messages list is empty"); + LOG4CXX_INFO(logger_, "ConsumerFriendlyMessages messages list is empty"); return true; } @@ -1187,18 +1187,18 @@ bool SQLPTRepresentation::SaveConsumerFriendlyMessages( } if (!delete_query_exec_result) { - LOG4CXX_WARN(logger_, "Incorrect delete from message."); + LOG4CXX_WARN(logger_, "Failed to delete messages from DB."); return false; } if (!query.Prepare(sql_pt::kUpdateVersion)) { - LOG4CXX_WARN(logger_, "Incorrect update statement for version."); + LOG4CXX_WARN(logger_, "Invalid update messages version statement."); return false; } query.Bind(0, messages.version); if (!query.Exec()) { - LOG4CXX_WARN(logger_, "Incorrect update into version."); + LOG4CXX_WARN(logger_, "Failed to update messages version number in DB."); return false; } |