ソースを参照

Z991239-6377 #comment 资源管理实体日志精简

80374374 5 ヶ月 前
コミット
1843681e16

+ 1 - 1
Module/include/CommEntityUtil.hpp

@@ -268,7 +268,7 @@ static BOOL IsFirsRunAppAfterSystemBoot(CEntityBase* pEntity, DWORD theReportUse
 		CSmallDateTime dateTime;
 		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("systemRunInfo time: %s", (LPCTSTR)runInfo.tmStart.ToTimeString());
 		ec = pEntity->GetFunction()->GetRebootInfo(/*runInfo.tmStart*/dateTime, bootInfo);
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("bootInfor time: %s", (LPCTSTR)bootInfo.tmStart.ToTimeString());
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("bootInfor time: %s", (LPCTSTR)bootInfo.tmStart.ToTimeString());
 		CSmallDateTime systemBootTime;
 		const BOOL bRet = System::GetSystemBootTime(systemBootTime);
 		if (bRet && systemBootTime > bootInfo.tmStart) {

+ 2 - 6
Module/mod_ResourceWatcher/ResourceWatcherFSM.cpp

@@ -343,9 +343,8 @@ ErrorCodeEnum ResourceWatcherFSM::OnInit()
     erroCode = GetEntityBase()->GetFunction()->GetSystemStaticInfo(m_RvcSysinfo);
     m_bFirstRunAfterBoot = DetectIsFirstRunAtBoot();
     if (m_bFirstRunAfterBoot) {
-        DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("First time to run after system boot.");
+        DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("First time to run after system boot.");
     }
-
     spCtSettingConfig->ReadConfigValueInt(m_pEntity->GetEntityName(), "DisplayCnt", m_iNonSignedDisplay);
     if (m_iNonSignedDisplay <= 0)
         m_iNonSignedDisplay = 10;
@@ -4160,7 +4159,7 @@ void ResourceWatcherFSM::DetectSoftwareInstallStatus()
 		{
 			strSoftwaresNames[i] = value;
 		}
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("Detect SoftDetect from CentralSetting, %d: [%s],[%s],[%s]"
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Detect SoftDetect from CentralSetting, %d: [%s],[%s],[%s]"
 			, i, item.GetData(), strSoftwaresNames[i].GetData(), strSoftwaresVers[i].GetData());
 		nNameCounts++;
 	}
@@ -4171,14 +4170,11 @@ void ResourceWatcherFSM::DetectSoftwareInstallStatus()
         vector<SetupSoftInfo> stupInfo;
         DWORD dwInitFlag(0);
         FetchSoftewareInstall(stupInfo, dwInitFlag);
-        DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("1software size:%d", stupInfo.size());
         if (dwInitFlag == 1) {
 			FetchSoftewareInstall(stupInfo, dwInitFlag);
-			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("2software size:%d", stupInfo.size());
         }
         dwInitFlag = 2;
 		FetchSoftewareInstall(stupInfo, dwInitFlag);
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("3software size:%d", stupInfo.size());
         for (int i = 0; i < nNameCounts; ++i) {
             bool found(false);
 			for (int j = 0; j < stupInfo.size(); j++) {

+ 0 - 1
Module/mod_ResourceWatcher/mod_ResourceWatcher.cpp

@@ -212,7 +212,6 @@ std::string TryToGetSogouVersionEx()
             DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("cat sogou version return empty!");
         }
         else {
-            DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("cat sogou version returned: %s", succStr.c_str());
             return succStr;
         }
     }