From 6268b1fa986a016d426c8162d2f064c103138051 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 17 Dec 2024 18:56:32 +0800 Subject: [PATCH] =?utf8?q?=E5=B1=8F=E8=94=BD=E9=83=A8=E5=88=86=E6=B6=88?= =?utf8?q?=E6=81=AF=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/message/src/MessageModel.cpp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp index 8ed581b71..83d04231f 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp @@ -138,7 +138,7 @@ static void Notify(void *args, const Topic topic, Request *request) { return; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Received request %d", request->msgId); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Received request %d", request->msgId); if (request->msgId == TOPIC_EVENT_MESSAGE_UPDATA) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, @@ -149,14 +149,14 @@ static void Notify(void *args, const Topic topic, Request *request) { return; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Received request %d", + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Received request %d", request->msgId); ancs_data_info_t *messageInfo = (ancs_data_info_t *)request->data; ancs_data_info_t messageInfo_; - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "messageInfo"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "messageInfo"); messageInfo_.title = (char *)malloc(messageInfo->titlelen + 1); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "messageInfo.title"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "messageInfo.title"); if (messageInfo_.title == NULL) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Failed to allocate memory for title"); @@ -164,12 +164,12 @@ static void Notify(void *args, const Topic topic, Request *request) { } memcpy(messageInfo_.title, messageInfo->title, messageInfo->titlelen); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "memcpy"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "memcpy"); messageInfo_.title[messageInfo->titlelen] = '\0'; - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "messageInfo.title[messageInfo->titlelen]"); messageInfo_.msg = (char *)malloc(messageInfo->msglen + 1); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "messageInfo_.msg"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "messageInfo_.msg"); if (messageInfo_.msg == NULL) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Failed to allocate memory for message"); @@ -178,10 +178,10 @@ static void Notify(void *args, const Topic topic, Request *request) { } memcpy(messageInfo_.msg, messageInfo->msg, messageInfo->msglen); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "messageInfo.msg[messageInfo->msglen]"); messageInfo_.msg[messageInfo->msglen] = '\0'; - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "messageInfo_.msg[messageInfo->msglen end"); messageInfo_.appid = messageInfo->appid; @@ -189,11 +189,11 @@ static void Notify(void *args, const Topic topic, Request *request) { messageInfo_.time = messageInfo->time; messageInfo_.read = 0; - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "message_data %p %p\r\n", + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "message_data %p %p\r\n", messageInfo_.title, messageInfo_.msg); MessageModel::GetInstance().AddMessageData(&messageInfo_); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AddMessageData"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AddMessageData"); uint32_t currentTimestamp = OHOS::TraingModel::GetInstance()->get_current_time(); @@ -203,7 +203,7 @@ static void Notify(void *args, const Topic topic, Request *request) { free(messageInfo_.msg); return; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "get_current_time end"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "get_current_time end"); messageTimestamp = currentTimestamp; @@ -215,13 +215,13 @@ static void Notify(void *args, const Topic topic, Request *request) { free(messageInfo_.msg); return; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "status end"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "status end"); CustomEventPublish(TOPIC_EVENT_MESSAGENOTE, NULL, 0); // show_notify_messgae(); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Message popup sent"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Message popup sent"); free(messageInfo_.title); free(messageInfo_.msg); -- 2.17.1