|
|
@@ -1269,6 +1269,7 @@ ErrorCodeEnum CITCtrlEntity::SaveVideo(CSimpleStringA strVideoName)
|
|
|
auto rc = Error_Succeed;
|
|
|
|
|
|
if(ConnectToSalesRecord() != Error_Succeed){
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_SAVE_RECORD_FAILED, "save record failed for connect SalesClient failed!");
|
|
|
rc = Error_DevConnFailed;
|
|
|
}
|
|
|
else
|
|
|
@@ -1298,6 +1299,7 @@ ErrorCodeEnum CITCtrlEntity::StartRemoteRecord(CSimpleStringA strVideoName)
|
|
|
if (ConnectToSalesRecord() != Error_Succeed)
|
|
|
{
|
|
|
rc = Error_DevConnFailed;
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_START_REMOTERECORD_FAILED, "start remote record failed for connect SalesClient failed!");
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("StartRemoteRecord SalesClient connected failed!");
|
|
|
}
|
|
|
else
|
|
|
@@ -1327,6 +1329,7 @@ ErrorCodeEnum CITCtrlEntity::StopRecord(CSimpleStringA strVideoName)
|
|
|
{
|
|
|
rc = Error_DevConnFailed;
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("StopRecord SalesClient connected failed!");
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_STOP_REMOTERECORD_FAILED, "stop remote record failed for connect SalesClient failed!");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -1339,6 +1342,9 @@ ErrorCodeEnum CITCtrlEntity::StopRecord(CSimpleStringA strVideoName)
|
|
|
}
|
|
|
else{
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("Stop record %s failed for 0x%08x",strVideoName.GetData(), rc);
|
|
|
+ char strmsg[MAX_PATH] = { 0 };
|
|
|
+ _snprintf(strmsg, MAX_PATH, "Stop record %s failed for 0x%08x", strVideoName.GetData(), rc);
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_STOP_REMOTERECORD_FAILED, strmsg);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1514,7 +1520,7 @@ ErrorCodeEnum CITCtrlEntity::ConnectToLocalPlay(bool blogevt)
|
|
|
if (FAILURED(erroCode)){
|
|
|
m_pPlayClient = NULL;
|
|
|
if (blogevt) {
|
|
|
- LogWarn(Severity_Middle, Error_InvalidState, LOG_EVT_CONNECT_LOCALPLAY_FAILED,
|
|
|
+ LogWarn(Severity_Middle, Error_InvalidState, LOG_EVT_CONNECT_LOCALPLAYER_FAILED,
|
|
|
CSimpleStringA::Format("Connect to localplayer entity failed:0x%X", erroCode));
|
|
|
}
|
|
|
return Error_InvalidState;
|
|
|
@@ -1534,7 +1540,7 @@ ErrorCodeEnum CITCtrlEntity::ConnectToSalesRecord(bool blogevt)
|
|
|
if (FAILURED(erroCode)){
|
|
|
m_pSalesRecordClient = NULL;
|
|
|
if (blogevt) {
|
|
|
- LogWarn(Severity_Middle, Error_InvalidState, LOG_EVT_CONNECT_SAELSRECORD_FAILED,
|
|
|
+ LogWarn(Severity_Middle, Error_InvalidState, LOG_EVT_CONNECT_SALESRECORD_FAILED,
|
|
|
CSimpleStringA::Format("Connect to sales record entity failed:0x%X", erroCode));
|
|
|
}
|
|
|
return Error_InvalidState;
|
|
|
@@ -1857,7 +1863,7 @@ void UIServiceSession::Handle_StartRemoteRecord(SpReqAnsContext<UIService_StartR
|
|
|
rc = Error_InvalidState;
|
|
|
ctx->Ans.ErrorCode = Error_InvalidState;
|
|
|
ctx->Ans.ErrorMsg = CSimpleStringA2W("");
|
|
|
- LogWarn(Severity_Low, Error_Debug, LOG_EVT_START_REMOTERECORD_FAILED, "start remote record for connect salesrecord entity failed!");
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_START_REMOTERECORD_FAILED, "start remote record for connect sales record entity failed!");
|
|
|
}
|
|
|
}
|
|
|
else if(camstate[0] == 'I') {
|
|
|
@@ -1994,7 +2000,7 @@ void UIServiceSession::Handle_StartPlayNotice(SpReqAnsContext<UIService_StartPla
|
|
|
ctx->Ans.ErrorCode = Error_DevConnFailed;
|
|
|
ctx->Ans.ErrorMsg = CSimpleStringA2W("StartPlayNotice, Connect PlayClient entity failed!");
|
|
|
Error = Error_DevConnFailed;
|
|
|
- LogWarn(Severity_Low, Error_Debug, LOG_EVT_LOCALMEDIAPLAYER_LOST, "StartPlayNotice call");
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_LOCALMEDIAPLAYER_LOST, "StartPlayNotice, Connect PlayClient entity failed!");
|
|
|
}
|
|
|
else{
|
|
|
PlayService_StartPlayNotice_Req req;
|
|
|
@@ -2021,7 +2027,7 @@ void UIServiceSession::Handle_StopPlayNotice(SpReqAnsContext<UIService_StopPlayN
|
|
|
ctx->Ans.ErrorCode = Error_DevConnFailed;
|
|
|
ctx->Ans.ErrorMsg = CSimpleStringA2W("StopPlayNotice, Connect PlayClient entity failed!");
|
|
|
Error = Error_DevConnFailed;
|
|
|
- LogWarn(Severity_Low, Error_Debug, LOG_EVT_LOCALMEDIAPLAYER_LOST, "StopPlayNotice call");
|
|
|
+ LogError(Severity_High, Error_Debug, LOG_EVT_LOCALMEDIAPLAYER_LOST, "StopPlayNotice, Connect PlayClient entity failed!");
|
|
|
}
|
|
|
else{
|
|
|
PlayService_StopPlayNotice_Req req;
|