屏蔽部分消息打印 1526/3 1526/head
authorCaisking <3449750381@qq.com>
Tue, 17 Dec 2024 10:56:32 +0000 (18:56 +0800)
committerCaisking <3449750381@qq.com>
Tue, 17 Dec 2024 10:56:32 +0000 (18:56 +0800)
code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp

index 8ed581b..83d0423 100644 (file)
@@ -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);