Przeglądaj źródła

Z991239-3742 #comment other:缩减解压日志埋点日志

Signed-Off-By: commit-hook
刘文涛80174520 3 lat temu
rodzic
commit
7830876df2
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      Module/mod_UpgradeMgr/XUnZipZilb.cpp

+ 4 - 3
Module/mod_UpgradeMgr/XUnZipZilb.cpp

@@ -41,6 +41,7 @@ int UnZipToDir(string zipFileName, string destDirPath)
 		unzClose(zfile);
 		return -1;
 	}
+	Dbg("zip entry count is %d", global_info.number_entry);
 	for (int i = 0; i < global_info.number_entry; i++) {
 		if (unZipCurrentFile(zfile, destDirPath) != UNZ_OK) {
 			Dbg("unzip fail %s", zipFileName.c_str());
@@ -240,7 +241,7 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
 	}
 #endif // RVC_OS_WIN
 
-	Dbg("unZipCurrentFile newFileName %s", newFileName.c_str());
+	//Dbg("unZipCurrentFile newFileName %s", newFileName.c_str());
 	string filestr = newFileName;
 	//判断是文件还是文件夹
 
@@ -270,7 +271,7 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
 	if (isDir)
 	{   //创建文件夹
 		string dirPath = destDirPath + SPLIT_SLASH_STR + newFileName;
-		Dbg("creating directory: %s", dirPath.c_str());
+		//Dbg("creating directory: %s", dirPath.c_str());
 		if (!CreateDirA(dirPath.c_str(), true))
 		{
 			Dbg("creating directory fail: dirPath(%s) zipFileName(%s)", dirPath.c_str(), newFileName.c_str());
@@ -280,7 +281,7 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
 	else
 	{   //打开zip里面的文件
 		string fileNamePath = destDirPath + SPLIT_SLASH_STR + newFileName;
-		Dbg("creating file:%s", fileNamePath.c_str());
+		//Dbg("creating file:%s", fileNamePath.c_str());
 
 		//先创建文件的父文件夹
 		int pos = fileNamePath.find_last_of(SPLIT_SLASH);