Эх сурвалжийг харах

Z991239-5077 #comment 优化实体日志

80274480 1 жил өмнө
parent
commit
3087360719

+ 0 - 4
Module/mod_livenessdetection/unix/mod_livenessdetection.cpp

@@ -176,15 +176,12 @@ void CLivenessDetectionEntity::OnLog( const CAutoArray<CUUID> &SubIDs, const CUU
 	DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("user_code = 0x%08x", dwUserCode);
 	switch (dwUserCode) {
 	case LOG_EVT_BEGIN_HANDLE_BUSINESS:
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("begin handle business.");
 		break;
 
 	case LOG_EVT_END_HANDLE_BUSINESS:
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("end handle business.");
 		break;
 
 	case LOG_EVT_MEDIACONTROLLER_CAMERA_STARTED:
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start camera, begin facetracking.");
 		if (!m_pFaceVideo) {
 			m_pFaceVideo = new RvcFaceVideo();
 		}
@@ -197,7 +194,6 @@ void CLivenessDetectionEntity::OnLog( const CAutoArray<CUUID> &SubIDs, const CUU
 		break;
 
 	case LOG_EVT_MEDIACONTROLLER_CAMERA_STOPPED:
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("stop camera, end facetracking.");
 		if (m_pFaceVideo){
 			delete m_pFaceVideo;
 			m_pFaceVideo = NULL;

+ 5 - 4
Other/unix/libvideorecord/libvideorecord_impl.cpp

@@ -794,19 +794,20 @@ bool libvideorecord_impl::GetRecordAudioFrameSize()
 			ts.tv_sec += (unsec / 1000000000);
 			ts.tv_nsec = (unsec % 1000000000);
 			if (0 != sem_timedwait(&m_semt, &ts) && (ETIMEDOUT == errno)) {
-			
+				if (0 != i && 0 == i % 500) {
+					m_pHostApi->Debug(RECORD_LOG_ERROR, "get local audio frame size failed %d times.", i);
+				}
 			}
-
-			m_pHostApi->Debug(RECORD_LOG_DEBUG, "get local audio frame size failed %d times.", i);
 		}
 		else {
+			m_pHostApi->Debug(RECORD_LOG_INFO, "get audio frame size failed time is %d.", i);
 			bRet = true;
 			break;
 		}
 	}
 
 	if (bRet) {
-		m_pHostApi->Debug(RECORD_LOG_DEBUG, "Local Audio Frame Size = %d", m_iAudioFrameSize);
+		m_pHostApi->Debug(RECORD_LOG_DEBUG, "local audio frame size = %d.", m_iAudioFrameSize);
 	}
 
 	return bRet;