From 015bd83b18bb27076faee0f0dffedf6ec06717f8 Mon Sep 17 00:00:00 2001 From: Piotr Kosko Date: Wed, 27 May 2015 12:50:21 +0200 Subject: [PATCH] [Callhistory] Added logs in methods onEntered and onReturn Change-Id: I33378ebc81cfed24aa8e96473ff848ef01f19b9d Signed-off-by: Piotr Kosko --- src/callhistory/callhistory_utils.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/callhistory/callhistory_utils.cc b/src/callhistory/callhistory_utils.cc index 7a962403..b23404f2 100755 --- a/src/callhistory/callhistory_utils.cc +++ b/src/callhistory/callhistory_utils.cc @@ -267,6 +267,8 @@ unsigned int CallHistoryUtils::convertAttributeName(const std::string attribute_ static FilterTypeEnum getFilterType(const picojson::object &filter) { + LoggerD("Entered"); + const auto it_end = filter.end(); FilterTypeEnum type = FILTER_UNKNOWN; @@ -291,6 +293,7 @@ static FilterTypeEnum getFilterType(const picojson::object &filter) static CompositeTypeEnum getCompositeType(const picojson::object &filter) { + LoggerD("Entered"); CompositeTypeEnum type = NONE; const std::string& str_type = filter.find("type")->second.get(); @@ -304,6 +307,7 @@ static CompositeTypeEnum getCompositeType(const picojson::object &filter) static contacts_match_str_flag_e getMatchFlag(const std::string& match_flag) { + LoggerD("Entered"); if (STR_FILTER_FULLSTRING == match_flag) { return CONTACTS_MATCH_FULLSTRING; } else if (STR_FILTER_CONTAINS == match_flag) { @@ -321,6 +325,7 @@ static contacts_match_str_flag_e getMatchFlag(const std::string& match_flag) static std::time_t toTimeT(const std::string &value) { + LoggerD("Entered"); struct tm date; if (nullptr == strptime(value.c_str(), "%Y-%m-%dT%H:%M:%S", &date)) { LOGW("Couldn't convert supplied date."); @@ -659,6 +664,7 @@ static void generateFilter(std::stack& stack, void CallHistoryUtils::createFilter(contacts_filter_h filter, const picojson::object filter_obj) { + LoggerD("Entered"); std::stack filter_stack; filter_stack.push(filter); generateFilter(filter_stack, filter_obj, CompositeTypeEnum::NONE); -- 2.34.1