4GAI添加调试log 2034/1 2034/head 2035/target/1
authorluozheng <1732036298@qq.com>
Fri, 1 Aug 2025 06:35:57 +0000 (14:35 +0800)
committerluozheng <1732036298@qq.com>
Fri, 1 Aug 2025 06:35:57 +0000 (14:35 +0800)
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp

index ba33291..17adca0 100644 (file)
@@ -1029,6 +1029,7 @@ namespace OHOS
     void AiVoiceModel::StopListenAndRecordingUserQuestion(void)
     {
         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "停止录音");
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "停止录音:%d",GetSelect4gorbt());
         if (GetSelect4gorbt() == AI_SELECT_4G) // 选的是4G需要关闭asr
         {
             // uapi_stop_asr();
index c804ef1..098bbb8 100644 (file)
@@ -123,7 +123,7 @@ namespace OHOS
     // 页面完全置于后台时的逻辑。
     void AiVoicePresenter::OnStop(void)
     {
-        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnStop");
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnStop start");
         Presenter<AiVoiceView>::OnStop();
         ScreenAlwaysOnCtr(CANCEL_SCREEN_ALWAYS_ON);
         model->StatusResume();
@@ -138,6 +138,7 @@ namespace OHOS
         dinit_ai_task();
 
         uapi_ble_connect_param_update(BLE_CONNECT_INTERVAL_SLOW);
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnStop end");
         return;
     }
 
@@ -298,7 +299,7 @@ namespace OHOS
 
     bool AiVoicePresenter::ChangeViewAndLogicOperator(int16_t hideView, int16_t showView)
     {
-        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::ChangeViewOperator");
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::ChangeViewOperator");
 
         // 加锁,作用域结束时自动释放锁
         std::lock_guard<std::mutex> lock(m_mutex);
@@ -410,7 +411,7 @@ namespace OHOS
     {
         UNUSED(event);
         std::string viewId = view.GetViewId();
-        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
         /* ----------------------------- 重置60s取消常亮屏timer ---------------------------- */
         model->reset_ai_screen60s_timer_time();
         /* -------------------------------------------------------------------------- */
@@ -471,7 +472,7 @@ namespace OHOS
     {
         UNUSED(event);
         std::string viewId = view.GetViewId();
-        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
         /* ----------------------------- 重置60s取消常亮屏timer ---------------------------- */
         model->reset_ai_screen60s_timer_time();
         /* -------------------------------------------------------------------------- */