summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc
index b8714b4784..9262466e34 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/list_files_request.cc
@@ -44,6 +44,8 @@ using namespace application_manager;
namespace commands {
+SDL_CREATE_LOG_VARIABLE("Commands")
+
ListFilesRequest::ListFilesRequest(
const application_manager::commands::MessageSharedPtr& message,
ApplicationManager& application_manager,
@@ -59,14 +61,14 @@ ListFilesRequest::ListFilesRequest(
ListFilesRequest::~ListFilesRequest() {}
void ListFilesRequest::Run() {
- LOG4CXX_AUTO_TRACE(logger_);
+ SDL_LOG_AUTO_TRACE();
ApplicationSharedPtr application =
application_manager_.application(connection_key());
if (!application) {
SendResponse(false, mobile_apis::Result::APPLICATION_NOT_REGISTERED);
- LOG4CXX_ERROR(logger_, "Application is not registered");
+ SDL_LOG_ERROR("Application is not registered");
return;
}
@@ -77,8 +79,7 @@ void ListFilesRequest::Run() {
application->list_files_in_none_count())) {
// If application is in the HMI_NONE level the quantity of allowed
// DeleteFile request is limited by the configuration profile
- LOG4CXX_ERROR(logger_,
- "Too many requests from the app with HMILevel HMI_NONE ");
+ SDL_LOG_ERROR("Too many requests from the app with HMILevel HMI_NONE ");
SendResponse(false, mobile_apis::Result::REJECTED);
return;
}
@@ -97,11 +98,10 @@ void ListFilesRequest::Run() {
std::vector<std::string>::const_iterator it = persistent_files.begin();
for (; it != persistent_files.end(); ++it) {
if (i < application_manager_.get_settings().list_files_response_size()) {
- LOG4CXX_DEBUG(logger_, "File " + *it + " added to ListFiles response");
+ SDL_LOG_DEBUG("File " + *it + " added to ListFiles response");
(*message_)[strings::msg_params][strings::filenames][i++] = *it;
} else {
- LOG4CXX_DEBUG(logger_,
- "File " + *it + " not added to ListFiles response");
+ SDL_LOG_DEBUG("File " + *it + " not added to ListFiles response");
}
}
(*message_)[strings::params][strings::message_type] =