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);
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;
}
}
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) {
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",
pid = client->pid;
}
}
+ if (-1 == pid) {
+ MAS_LOGE("PID lookup failed for : %s", appid.c_str());
+ }
return pid;
}