|
@@ -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());
|
|
|
}
|
|
|
}
|
|
|
|