Forráskód Böngészése

#IQRV #comment 厂商日志从告警改成Dbg

80374374 6 hónapja
szülő
commit
089289d97b
1 módosított fájl, 2 hozzáadás és 13 törlés
  1. 2 13
      Module/include/DevEntityCommBase.hpp

+ 2 - 13
Module/include/DevEntityCommBase.hpp

@@ -258,7 +258,6 @@ inline void CDevAdptEntityBase::InitializeVendorLogSwitch()
 		stLogConfig.strLevel = str;
 	}
 
-	bool fromLocal = false;
 	if (stLogConfig.strLevel.Compare("OFF", true) != 0) {
 
 		stLogConfig.strType = "UPLOAD";
@@ -271,18 +270,8 @@ inline void CDevAdptEntityBase::InitializeVendorLogSwitch()
 		GetFunction()->GetPath("Dbg", stLogConfig.strLogPath);
 		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("DbgPath: %s", stLogConfig.strLogPath.GetData());
 		stLogConfig.Settle();
-
-        do {
-            CEntityStaticInfo staticInfo;
-            GetFunction()->GetEntityStaticInfo(GetEntityName(), staticInfo);
-            DWORD dwUsrCode = fromLocal ? 0xFFFEE : 0xFFFEF;
-            dwUsrCode |= (staticInfo.wEntityDevelopID << 20);
-            LogWarn(Severity_Low, Error_Debug, dwUsrCode,
-                    CSimpleStringA::Format("{\"RecordLevel\":\"%s\", \"RecordType\":\"%s\", \"DeterminedBy\":\"%s\"}",
-                                           stLogConfig.strLevel.GetData(),
-                                           stLogConfig.strType.GetData(),
-                                           fromLocal ? "LocalMaintain" : "CenterSettings"));
-        } while (false);
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("{\"RecordLevel\":\"%s\", \"RecordType\":\"%s\"}",
+			stLogConfig.strLevel.GetData(),stLogConfig.strType.GetData());
 	}
 }