Explorar el Código

#IQRV #comment [Module][Healthmanager] 增加总行升级的验证告警数据

gifur hace 3 años
padre
commit
5d0f4fb069
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      Module/mod_healthmanager/mod_healthmanager.cpp

+ 9 - 1
Module/mod_healthmanager/mod_healthmanager.cpp

@@ -2272,8 +2272,16 @@ void CHealthManagerEntity::OnSysVarEvent(const char *pszKey, const char *pszValu
 				Dbg("the first enter main page from HealthManger started.");
 				LogEvent(Severity_Middle, LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE_FROM_HEALTH_START
 					, "first enter main page from HealthManager started.");
+
+
+				CSmartPointer<IConfigInfo> spConfigShell;
+				GetFunction()->OpenConfig(Config_Shell, spConfigShell);
+				CSimpleStringA shellVersion(true);
+				spConfigShell->ReadConfigValue("Main", "SoftwareVersion", shellVersion);
+
 				LogWarn(Severity_Middle, Error_Unexpect,LOG_EVT_HEALTH_FIRST_ENTER_MAINPADE_FROM_HEALTH_START
-					, CSimpleStringA::Format("First enter main page from HealthManger started: %s", m_sysStaticInfo.InstallVersion.ToString().GetData()));
+					, CSimpleStringA::Format("First enter main page from HealthManger started: %s, test: %s", 
+											 m_sysStaticInfo.InstallVersion.ToString().GetData(), shellVersion.GetData()));
 			}
 			if (m_bBrowserIdleFirst)
 			{