Add more log messages to the ERROR level group
[platform/core/uifw/multi-assistant-service.git] / src / service_main.cpp
index 8a401c1..866cf20 100644 (file)
@@ -225,7 +225,7 @@ int CServiceMain::client_send_result(pid_t pid, const char* display_text,
 
 int CServiceMain::client_send_recognition_result(pid_t pid, int result)
 {
-       MAS_LOGI("[Enter] pid(%d), result(%d)", pid, result);
+       MAS_LOGE("[Enter] pid(%d), result(%d)", pid, result);
        if (!is_current_assistant(pid)) return -1;
 
        bool ui_panel_enabled = mServicePlugin.is_ui_panel_enabled();
@@ -249,7 +249,7 @@ int CServiceMain::client_send_recognition_result(pid_t pid, int result)
 
 int CServiceMain::client_start_streaming_audio_data(pid_t pid, int type)
 {
-       MAS_LOGI("[ENTER] %d", type);
+       MAS_LOGE("[ENTER] %d", type);
 
        int ret = -1;
        if (!is_current_assistant(pid)) {
@@ -276,7 +276,7 @@ int CServiceMain::client_start_streaming_audio_data(pid_t pid, int type)
 
 int CServiceMain::client_stop_streaming_audio_data(pid_t pid, int type)
 {
-       MAS_LOGI("[ENTER] %d", type);
+       MAS_LOGE("[ENTER] %d", type);
 
        int ret = -1;
        if (!is_current_assistant(pid)) {
@@ -679,7 +679,7 @@ static void active_state_changed_cb(std::string key, void* user_data)
        boost::optional<bool> activated =
                manager->get_bool(MULTI_ASSISTANT_SETTINGS_ACTIVATED);
        if (activated) {
-               MAS_LOGI("multi-assistant active state : %d\n", *activated);
+               MAS_LOGE("multi-assistant active state : %d\n", *activated);
 
                CServicePlugin *plugin = nullptr;
                if (g_service_main) {
@@ -955,7 +955,7 @@ int CServiceMain::set_current_client_by_wakeup_word(const char *wakeup_word)
                                if (0 < strlen(items[loop].wakeup_word[inner_loop])) {
                                        if (0 == strncmp(wakeup_word, items[loop].wakeup_word[inner_loop], MAX_WAKEUP_WORD_LEN)) {
                                                mCurrentClientInfo = loop;
-                                               MAS_LOGI("mCurrentClientInfo : %d %s", mCurrentClientInfo, wakeup_word);
+                                               MAS_LOGE("mCurrentClientInfo : %d %s", mCurrentClientInfo, wakeup_word);
                                                ret = 0;
                                        }
                                }
@@ -978,7 +978,7 @@ int CServiceMain::set_current_client_by_wakeup_word(const char *wakeup_word)
                                                }
                                                if (0 == strncmp(wakeup_word, comparand, MAX_WAKEUP_WORD_LEN)) {
                                                        mCurrentClientInfo = loop;
-                                                       MAS_LOGI("mCurrentClientInfo : %d %s", mCurrentClientInfo, wakeup_word);
+                                                       MAS_LOGE("mCurrentClientInfo : %d %s", mCurrentClientInfo, wakeup_word);
                                                        ret = 0;
                                                }
                                        }
@@ -1013,7 +1013,7 @@ int CServiceMain::set_current_client_by_appid(const char *appid)
                        0 < strlen(items[loop].appid) &&
                        0 < strlen(items[loop].wakeup_word[0])) {
                        if (strncmp(appid, items[loop].appid, MAX_APPID_LEN) == 0) {
-                               MAS_LOGI("mCurrentClientInfo : %d %s", mCurrentClientInfo, appid);
+                               MAS_LOGE("mCurrentClientInfo : %d %s", mCurrentClientInfo, appid);
                                mCurrentClientInfo = loop;
                                ret = 0;
                        }
@@ -1313,7 +1313,7 @@ bool CServiceMain::is_valid_wakeup_engine(const char* appid)
 bool CServiceMain::app_create(void *data)
 {
        // Todo: add your code here.
-       MAS_LOGI("[ENTER] Service app create");
+       MAS_LOGE("[ENTER] Service app create");
 
        g_service_main = this;
 
@@ -1361,13 +1361,13 @@ bool CServiceMain::app_create(void *data)
 
        mPackageUpdateMonitor.initialize();
 
-       MAS_LOGI("[END] Service app create");
+       MAS_LOGE("[END] Service app create");
        return true;
 }
 
 void CServiceMain::app_terminate(void *data)
 {
-       MAS_LOGI("[ENTER]");
+       MAS_LOGE("[ENTER]");
 
        mPackageUpdateMonitor.deinitialize();
 
@@ -1383,7 +1383,7 @@ void CServiceMain::app_terminate(void *data)
 
        g_service_main = nullptr;
 
-       MAS_LOGI("[END]");
+       MAS_LOGE("[END]");
        return;
 }