Remove unnecessary log messages from INFO tag 18/248818/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 2 Dec 2020 09:11:27 +0000 (18:11 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 2 Dec 2020 10:46:30 +0000 (19:46 +0900)
Change-Id: I53375ef3e1f4f1bebe19b70bc6a43b3a71235fde

src/client_manager.cpp

index 18339df8bed1f919d60a593b188a6e3222aaf118..2fd5b615103cd7f699184067ac843c73aa862189 100644 (file)
@@ -75,7 +75,7 @@ int CClientManager::destroy_client_by_appid(std::string appid)
 
 ma_client_s* CClientManager::find_client_by_appid(std::string appid)
 {
-       MAS_LOGI("Looking for client with appid : %s", appid.c_str());
+       MAS_LOGD("Looking for client with appid : %s", appid.c_str());
        ma_client_s *data = NULL;
 
        int count = g_slist_length(mClientList);
@@ -86,7 +86,7 @@ ma_client_s* CClientManager::find_client_by_appid(std::string appid)
 
                if (NULL != data) {
                        if (0 == appid.compare(data->appid)) {
-                               MAS_LOGI("Found client : %s %d", data->appid.c_str(), data->pid);
+                               MAS_LOGD("Found client : %s %d", data->appid.c_str(), data->pid);
                                return data;
                        }
                }
@@ -141,7 +141,7 @@ pid_t CClientManager::find_client_pid_by_index(unsigned int index)
 
 pid_t CClientManager::find_client_pid_by_appid(std::string appid)
 {
-       MAS_LOGI("Checking PID of appid : %s", appid.c_str());
+       MAS_LOGD("Checking PID of appid : %s", appid.c_str());
        pid_t pid = -1;
 
        if (nullptr == mApplicationManager) {
@@ -151,7 +151,7 @@ pid_t CClientManager::find_client_pid_by_appid(std::string appid)
 
        ma_client_s* client = find_client_by_appid(appid);
        if (client) {
-               MAS_LOGI("Found client : %s %d", client->appid.c_str(), client->pid);
+               MAS_LOGD("Found client : %s %d", client->appid.c_str(), client->pid);
                bool running = mApplicationManager->is_application_running(client->pid);
                if (false == running) {
                        MAS_LOGE("The PID for %s was %d, but it seems to be terminated",
@@ -160,6 +160,9 @@ pid_t CClientManager::find_client_pid_by_appid(std::string appid)
                        pid = client->pid;
                }
        }
+       if (-1 == pid) {
+               MAS_LOGE("PID lookup failed for : %s", appid.c_str());
+       }
        return pid;
 }