Add more log messages to the ERROR level group
[platform/core/uifw/multi-assistant-service.git] / plugins / wakeup-manager / src / wakeup_engine_manager.cpp
index 9a5b154..2d439d0 100644 (file)
@@ -215,7 +215,7 @@ bool CWakeupEngineManager::set_assistant_language(string appid, string language)
 
 void CWakeupEngineManager::set_assistant_activated(string appid, bool activated)
 {
-       MWR_LOGI("[ENTER] : %s %d", appid.c_str(), activated);
+       MWR_LOGE("[ENTER] : %s %d", appid.c_str(), activated);
        for (auto& info : mEngineInfo) {
                const auto& iter = find_if(info.assistant_list.begin(), info.assistant_list.end(),
                        [appid](const string& assistant) {
@@ -275,7 +275,7 @@ void CWakeupEngineManager::set_wake_word_audio_require_flag(bool require)
 
 void CWakeupEngineManager::streaming_speech_data_thread_func()
 {
-       MWR_LOGI("[ENTER]");
+       MWR_LOGE("[ENTER]");
 
        if (nullptr == mSelectedEngine) {
                MWR_LOGE("No Engine Selected");
@@ -456,7 +456,7 @@ void CWakeupEngineManager::streaming_speech_data_thread_func()
                        }
 
                        if (MAS_SPEECH_STREAMING_EVENT_FINISH == speech_data.event) {
-                               MWR_LOGI("[INFO] Finish to get and send speech data");
+                               MWR_LOGE("[INFO] Finish to get and send speech data");
                                finish_event_sent = true;
                                break;
                        }
@@ -469,7 +469,7 @@ void CWakeupEngineManager::streaming_speech_data_thread_func()
                unsigned char final_buffer[2] = {'\0', };
                for (const auto& observer : mObservers) {
                        if (observer) {
-                               MWR_LOGI("No FINISH event sent yet, adding to finalize streaming session");
+                               MWR_LOGE("No FINISH event sent yet, adding to finalize streaming session");
                                if (!observer->on_streaming_audio_data(
                                        MAS_SPEECH_STREAMING_EVENT_FINISH, final_buffer, sizeof(final_buffer))) {
                                        LOGE("[Recorder WARNING] One of the observer returned false");
@@ -486,7 +486,7 @@ void CWakeupEngineManager::streaming_speech_data_thread_func()
 #endif
        }
 
-       MWR_LOGI("[EXIT]");
+       MWR_LOGE("[EXIT]");
 }
 
 void CWakeupEngineManager::start_streaming_current_utterance_data()