summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/src/sql_pt_representation.cc
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2017-06-16 15:29:03 +0300
committerAKalinich-Luxoft <AKalinich@luxoft.com>2017-06-16 15:29:03 +0300
commit36a37e964f03b3c01decee10c80a67b8c5ec1590 (patch)
tree518feee47c92d011bd0f84aeb6954f53d2887b6e /src/components/policy/policy_external/src/sql_pt_representation.cc
parent045a313b4d99b6141ae99e71ff0e9d1d20520a1c (diff)
downloadsdl_core-36a37e964f03b3c01decee10c80a67b8c5ec1590.tar.gz
Fixed logger messages context
Diffstat (limited to 'src/components/policy/policy_external/src/sql_pt_representation.cc')
-rw-r--r--src/components/policy/policy_external/src/sql_pt_representation.cc8
1 files changed, 4 insertions, 4 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;
}