|
@@ -1757,7 +1757,7 @@ bool CVtmLoaderFSM::GetConfig()
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("subscribe event succeed");
|
|
|
|
|
|
CSmartPointer<IConfigInfo> pConfig;
|
|
|
- CSimpleString t_endpoint, t_topicSys, t_topicUser, t_topicBeidou, t_bussSys, t_bussUser;
|
|
|
+ CSimpleString t_endpoint, t_topicSys, t_topicUser, t_topicBeidou, t_bussSys, t_bussUser, t_VTMWeb;
|
|
|
|
|
|
eErr = GetEntityBase()->GetFunction()->OpenConfig(Config_CenterSetting, pConfig);
|
|
|
if (eErr == Error_Succeed && Error_Succeed == pConfig->ReadConfigValue("Common", "SendEndpoint", t_endpoint)
|
|
@@ -1766,17 +1766,21 @@ bool CVtmLoaderFSM::GetConfig()
|
|
|
&& Error_Succeed == pConfig->ReadConfigValue("Common", "SendBeidou", t_topicBeidou)
|
|
|
&& Error_Succeed == pConfig->ReadConfigValue("Common", "BusinessSys", t_bussSys)
|
|
|
&& Error_Succeed == pConfig->ReadConfigValue("Common", "BusinessUser", t_bussUser)
|
|
|
+ && Error_Succeed == pConfig->ReadConfigValue("Common", "VTMWeb", t_VTMWeb)
|
|
|
&& 0 != t_topicSys.GetLength()
|
|
|
&& 0 != t_topicUser.GetLength()
|
|
|
&& 0 != t_topicBeidou.GetLength()
|
|
|
&& 0 != t_bussSys.GetLength()
|
|
|
- && 0 != t_bussUser.GetLength())
|
|
|
+ && 0 != t_bussUser.GetLength()
|
|
|
+ && 0 != t_VTMWeb.GetLength())
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("endpoint:%s, topicSys:%s, topicUser:%s, topicBeidou:%s, bussSys:%s, bussUser:%s", t_endpoint.GetData(), t_topicSys.GetData(), t_topicUser.GetData(), t_topicBeidou.GetData(), t_bussSys.GetData(), t_bussUser.GetData());
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("endpoint:%s, topicSys:%s, topicUser:%s, topicBeidou:%s, bussSys:%s, bussUser:%s, vtmWeb:%s"
|
|
|
+ , t_endpoint.GetData(), t_topicSys.GetData(), t_topicUser.GetData(), t_topicBeidou.GetData(), t_bussSys.GetData(), t_bussUser.GetData(), t_VTMWeb.GetData());
|
|
|
|
|
|
if (0 != t_endpoint.GetLength())
|
|
|
{
|
|
|
- GetEntityBase()->GetFunction()->GetPrivilegeFunction()->BeginLogSend(t_endpoint.GetData(), t_topicSys.GetData(), t_topicUser.GetData(), t_topicBeidou.GetData(), t_bussSys.GetData(), t_bussUser.GetData());
|
|
|
+ GetEntityBase()->GetFunction()->GetPrivilegeFunction()->BeginLogSend(t_endpoint.GetData()
|
|
|
+ , t_topicSys.GetData(), t_topicUser.GetData(), t_topicBeidou.GetData(), t_bussSys.GetData(), t_bussUser.GetData(), t_VTMWeb.GetData());
|
|
|
}
|
|
|
else
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("endpoint is empty, do not begin send log");
|
|
@@ -1789,8 +1793,10 @@ bool CVtmLoaderFSM::GetConfig()
|
|
|
const char* topicBeidou = "LR18_23_VTMTerminalLogService_L_trace_VTMTerminalTraceLog_SRC_SZ";
|
|
|
const char* topicBussSys = "LR18_23_VTMTerminalLogService_L_sys_VTMBusiness_SRC_SZ";
|
|
|
const char* topicBussUser = "LR18_23_VTMTerminalLogService_L_biz_VTMBusiness_SRC_SZ";
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("read endpoint and topic err, need check centersetting, use default %s-%s-%s-%s-%s-%s", default_endpoint, topicSys, topicUser, topicBeidou, topicBussSys, topicBussUser);
|
|
|
- GetEntityBase()->GetFunction()->GetPrivilegeFunction()->BeginLogSend(default_endpoint, topicSys, topicUser, topicBeidou, topicBussSys, topicBussUser);
|
|
|
+ const char* topicVTMWeb = "LR18_23_VTMWebSDKUserLog";
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("read endpoint and topic err, need check centersetting, use default %s-%s-%s-%s-%s-%s-%s"
|
|
|
+ , default_endpoint, topicSys, topicUser, topicBeidou, topicBussSys, topicBussUser, topicVTMWeb);
|
|
|
+ GetEntityBase()->GetFunction()->GetPrivilegeFunction()->BeginLogSend(default_endpoint, topicSys, topicUser, topicBeidou, topicBussSys, topicBussUser, topicVTMWeb);
|
|
|
}
|
|
|
|
|
|
|