diff --git a/modules/sysevent/event_reporter.cpp b/modules/sysevent/event_reporter.cpp index 2bf0cb6ba1feb1fa2f69bbb1038101a8accc4715..c70ace7ab1354bc6a82c7a359c6501c6518d143b 100644 --- a/modules/sysevent/event_reporter.cpp +++ b/modules/sysevent/event_reporter.cpp @@ -45,8 +45,11 @@ void ProcessMgrRemoveApp(const char* processName, int pid, int uid, int status) } if (signal != 0) { - HiSysEventWrite(HiSysEvent::Domain::APPSPAWN, KEY_PROCESS_EXIT, HiSysEvent::EventType::BEHAVIOR, + int ret = HiSysEventWrite(HiSysEvent::Domain::APPSPAWN, KEY_PROCESS_EXIT, HiSysEvent::EventType::BEHAVIOR, KEY_NAME, pname, KEY_PID, pid, KEY_UID, uid, KEY_STATUS, status); + if (ret != 0) { + APPSPAWN_LOGE("ProcessMgrRemoveApp error, ret: %{public}d", ret); + } } } } // namespace system