Răsfoiți Sursa

#IQRV #comment [JS] 添加启动初始实体的告警

gifur 4 ani în urmă
părinte
comite
11a3451b50
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      Module/mod_healthmanager/mod_healthmanager.cpp

+ 3 - 0
Module/mod_healthmanager/mod_healthmanager.cpp

@@ -247,6 +247,7 @@ void CHealthManagerEntity::OnStarted()
 				step->LoadConfig(configPath);
                 result = step->StartStartupEntities(this);
                 if (result != Error_Succeed) {
+					LogError(Severity_Middle, result, 0, CSimpleStringA::Format("Initial Boot Step failed: %s", SpStrError(result)));
                     return;
                 }
 			}
@@ -260,6 +261,7 @@ void CHealthManagerEntity::OnStarted()
 				step->LoadConfig(configPath);
                 result = step->StartStartupEntities(this);
                 if (result != Error_Succeed) {
+					LogError(Severity_Middle, result, 0, CSimpleStringA::Format("Second Boot Step failed: %s", SpStrError(result)));
                     return;
                 }
 			}
@@ -273,6 +275,7 @@ void CHealthManagerEntity::OnStarted()
                 step->LoadConfig(configPath);
                 result = step->StartStartupEntities(this);
                 if (result != Error_Succeed) {
+					LogError(Severity_Middle, result, 0, CSimpleStringA::Format("Third Boot Step failed: %s", SpStrError(result)));
                     return;
                 }
             }