فهرست منبع

Z991239-5365 #comment 添加删除启动时间文件日志

oilyang 1 سال پیش
والد
کامیت
54e6b126f9
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      Module/mod_healthmanager/mod_healthmanager.cpp

+ 3 - 0
Module/mod_healthmanager/mod_healthmanager.cpp

@@ -488,7 +488,10 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
 				if (_access((const char*)csStartTime, 0) == 0) {
 					int ret = DeleteFileA(csStartTime);//oiltmp@20240423 why don't use remove ,what's the different?
 					if (ret != 0)//删除成功,清理前次记录的guardian版本记录
+					{
+						DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("delete start time file [%s] suc.", csStartTime.GetData());
 						spConfigRun->WriteConfigValue("Run", "VersionEx", "");
+					}
 					else
 						DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("delete time file [%s] error.[%d]", csStartTime.GetData(), GetLastError());
 				}