Quellcode durchsuchen

Z991239-6468 #comment feat: 优化埋点日志

Signed-Off-By: commit-hook
刘文涛80174520 vor 1 Monat
Ursprung
Commit
5dcd093018
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Module/mod_UpgradeMgr/UpgradeTaskFSM.cpp

+ 2 - 2
Module/mod_UpgradeMgr/UpgradeTaskFSM.cpp

@@ -2758,7 +2758,7 @@ ErrorCodeEnum CUpgradeTaskFSM::UpgradeToNewVersion()
 #else
 		bool backupSucc = true;
 		CSimpleStringA strBackupActiveFile = CSimpleStringA::Format("%s/back_active.txt", rootVerPath.GetData());
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("strBackupActiveFile=%s", strBackupActiveFile);
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("strBackupActiveFile=%s", strBackupActiveFile.GetData());
 		if (fileutil_copy_file( strBackupActiveFile.GetData(),strActiveFile.GetData())!=0) {
 			LogWarn(Severity_Middle, Error_Exception, ERR_TASK_UPDATE_ACTIVE_FAIL, CSimpleStringA::Format("UpgradeToNewVersion fail, back up active.txt fail, err=%d", errno).GetData());
 			backupSucc = false;
@@ -2910,7 +2910,7 @@ ErrorCodeEnum CUpgradeTaskFSM::RollBackToHistoryVersion(CVersion historyVersion)
 #else
 	bool backupSucc = true;
 	CSimpleStringA strBackupActiveFile = CSimpleStringA::Format("%s/Rollback_active.txt", rootVerPath.GetData());
-	DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("strBackupActiveFile=%s", strBackupActiveFile);
+	DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("strBackupActiveFile=%s", strBackupActiveFile.GetData());
 	if (fileutil_copy_file(strBackupActiveFile.GetData(), strActiveFile.GetData())!=0) {
 		LogWarn(Severity_Middle, Error_Exception, ERR_TASK_ROLL_BACK_ACTIVE_FAIL, CSimpleStringA::Format("RRollBackToHistoryVersion fail, back up active.txt fail, err=%d", errno).GetData());
 		backupSucc = false;