summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/mobile/dial_number_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/dial_number_request.cc')
-rw-r--r--src/components/application_manager/src/commands/mobile/dial_number_request.cc19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/components/application_manager/src/commands/mobile/dial_number_request.cc b/src/components/application_manager/src/commands/mobile/dial_number_request.cc
index 6a6d7f7b08..db73550cd2 100644
--- a/src/components/application_manager/src/commands/mobile/dial_number_request.cc
+++ b/src/components/application_manager/src/commands/mobile/dial_number_request.cc
@@ -47,7 +47,7 @@ DialNumberRequest::DialNumberRequest(const MessageSharedPtr& message,
DialNumberRequest::~DialNumberRequest() {}
bool DialNumberRequest::Init() {
- LOGGER_AUTO_TRACE(logger_);
+ SDL_AUTO_TRACE();
default_timeout_ = 0;
@@ -55,27 +55,26 @@ bool DialNumberRequest::Init() {
}
void DialNumberRequest::Run() {
- LOGGER_AUTO_TRACE(logger_);
+ SDL_AUTO_TRACE();
ApplicationSharedPtr application =
application_manager_.application(connection_key());
if (!application) {
- LOGGER_ERROR(logger_, "NULL pointer");
+ SDL_ERROR("NULL pointer");
SendResponse(false, mobile_apis::Result::APPLICATION_NOT_REGISTERED);
return;
}
std::string number =
(*message_)[strings::msg_params][strings::number].asString();
if (!CheckSyntax(number)) {
- LOGGER_ERROR(logger_, "Invalid incoming data");
+ SDL_ERROR("Invalid incoming data");
SendResponse(false, mobile_apis::Result::INVALID_DATA);
return;
}
StripNumberParam(number);
if (number.empty()) {
- LOGGER_ERROR(logger_,
- "After strip number param is empty. Invalid incoming data");
+ SDL_ERROR("After strip number param is empty. Invalid incoming data");
SendResponse(false, mobile_apis::Result::INVALID_DATA);
return;
}
@@ -90,12 +89,12 @@ void DialNumberRequest::Run() {
}
void DialNumberRequest::on_event(const event_engine::Event& event) {
- LOGGER_AUTO_TRACE(logger_);
+ SDL_AUTO_TRACE();
ApplicationSharedPtr application =
application_manager_.application(connection_key());
if (!application) {
- LOGGER_ERROR(logger_, "NULL pointer");
+ SDL_ERROR("NULL pointer");
return;
}
@@ -103,14 +102,14 @@ void DialNumberRequest::on_event(const event_engine::Event& event) {
mobile_apis::Result::eType result_code = mobile_apis::Result::SUCCESS;
switch (event.id()) {
case hmi_apis::FunctionID::BasicCommunication_DialNumber: {
- LOGGER_INFO(logger_, "Received DialNumber event");
+ SDL_INFO("Received DialNumber event");
result_code = CommandRequestImpl::GetMobileResultCode(
static_cast<hmi_apis::Common_Result::eType>(
message[strings::params][hmi_response::code].asInt()));
break;
}
default: {
- LOGGER_ERROR(logger_, "Received unknown event" << event.id());
+ SDL_ERROR("Received unknown event" << event.id());
return;
}
}