Эх сурвалжийг харах

Z991239-5746 #comment feat: 优化安装适配器埋点日志

Signed-Off-By: commit-hook
刘文涛80174520 11 сар өмнө
parent
commit
afd04276c9

+ 6 - 1
Module/mod_UpgradeMgr/UpgradeTaskFSM.cpp

@@ -4775,7 +4775,7 @@ ErrorCodeEnum CUpgradeTaskFSM::CreateInstallDepVersion(CSimpleStringA NewSoftwar
 	CSimpleStringA strCurrDepPath = CSimpleStringA::Format("%s" SPLIT_SLASH_STR "dep", strCurVerPath.GetData());
 
 	if (ExistsDirA(strCurrDepPath.GetData())) {
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("new install dep dir is exist, begin copy dir = %s", strCurrDepPath.GetData());
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("new install common dep dir is exist, begin copy dir = %s", strCurrDepPath.GetData());
 		//存在则拷贝公共库dep文件
 		CSimpleStringA tempPath;
 		ErrorCodeEnum Error = m_pEntity->GetFunction()->GetPath("DepBase", tempPath);//例如:C:\Run\dep\  /opt/Run/dep/
@@ -4797,6 +4797,11 @@ ErrorCodeEnum CUpgradeTaskFSM::CreateInstallDepVersion(CSimpleStringA NewSoftwar
 			return Error_Bug;
 		}
 	}
+	else {
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("new install common dep dir is not exist, default return true,dir=%s", strCurrDepPath.GetData());
+		return Error_Succeed;
+	}
+
 }
 
 ErrorCodeEnum CUpgradeTaskFSM::ClearUpgradeFailDepVersion(CSimpleStringA NewSoftwareVersion)