Prechádzať zdrojové kódy

Z991239-5647 #comment 优化埋点日志信息

80274480 1 rok pred
rodič
commit
b281ba6e35

+ 5 - 5
Module/mod_counterconnector/ConnectorFSM.cpp

@@ -1455,7 +1455,7 @@ void ACMCallFSM::s3_on_entry()
 		LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECTING_TIME, CSimpleStringA::Format("handfree call connecting time is %us.", unowtime - m_uConnectTime).GetData());
 		m_uConnectTime = unowtime;
 		long lnowtime = GetTickCount();
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("CallCostTime::Connecting").setCostTime(lnowtime - m_lConnectCostTime)("CallCostTime::Connecting");
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connecting").setCostTime(lnowtime - m_lConnectCostTime)("RemoteVideoCall::Connecting");
 		m_lConnectCostTime = lnowtime;
 	}
 }
@@ -1508,7 +1508,7 @@ void ACMCallFSM::s4_on_entry()
 		LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECTING_TIME, CSimpleStringA::Format("pickup call connecting time is %us.", unowtime - m_uConnectTime).GetData());
 		m_uConnectTime = unowtime;
 		long lnowtime = GetTickCount();
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("CallCostTime::Connecting").setCostTime(lnowtime - m_lConnectCostTime)("CallCostTime::Connecting");
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connecting").setCostTime(lnowtime - m_lConnectCostTime)("RemoteVideoCall::Connecting");
 		m_lConnectCostTime = lnowtime;
 	}
 }
@@ -1578,7 +1578,7 @@ void ACMCallFSM::s51_on_entry()
 	if (m_bConnected) {
 		m_bConnected = false;
 		LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECT_TIME, CSimpleStringA::Format("call connected time is %us.", y2k_time_now() - m_uConnectTime).GetData());
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("CallCostTime::Connected").setCostTime(GetTickCount() - m_lConnectCostTime)("CallCostTime::Connected");
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connected").setCostTime(GetTickCount() - m_lConnectCostTime)("RemoteVideoCall::Connected");
 	}
 }
 
@@ -1598,7 +1598,7 @@ void ACMCallFSM::s52_on_entry()
 	if (m_bConnected) {
 		m_bConnected = false;
 		LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECT_TIME, CSimpleStringA::Format("call connected time is %us.", y2k_time_now() - m_uConnectTime).GetData());
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("CallCostTime::Connected").setCostTime(GetTickCount() - m_lConnectCostTime)("CallCostTime::Connected");
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connected").setCostTime(GetTickCount() - m_lConnectCostTime)("RemoteVideoCall::Connected");
 	}
 }
 
@@ -1685,7 +1685,7 @@ void ACMCallFSM::s60_on_entry()
 	if (m_bConnected) {
 		m_bConnected = false;
 		LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECT_TIME, CSimpleStringA::Format("call connected time is %us.", y2k_time_now() - m_uConnectTime).GetData());
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("CallCostTime::Connected").setCostTime(GetTickCount() - m_lConnectCostTime)("CallCostTime::Connected");
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connected").setCostTime(GetTickCount() - m_lConnectCostTime)("RemoteVideoCall::Connected");
 	}
 }
 

+ 2 - 2
Module/mod_sipphone/unix/video_session.cpp

@@ -104,13 +104,13 @@ static void __dbg(void *user_data, const char *fmt, va_list arg)
 	if (n >= MAX_PATH) {
 		char* buf = (char*)malloc((size_t)(n + 1));
 		vsnprintf(buf, n + 1, fmt, arg);
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("%s", buf);
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s", buf);
 		free(buf);
 	}
 	else {
 		char strlog[MAX_PATH] = { 0 };
 		vsnprintf(strlog, MAX_PATH, fmt, arg);
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("%s", strlog);
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s", strlog);
 	}
 }
 

+ 2 - 2
Module/mod_sipphone/win/video_session.cpp

@@ -63,13 +63,13 @@ static void __dbg(void *user_data, const char *fmt, va_list arg)
 	if (n >= MAX_LOG_LEN) {
 		char* buf = (char*)malloc((size_t)(n + 1));
 		_vsnprintf(buf, n + 1, fmt, arg);
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("%s", buf);
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s", buf);
 		free(buf);
 	}
 	else{
 		char strlog[MAX_LOG_LEN] = {0};
 		_vsnprintf(strlog, MAX_LOG_LEN, fmt, arg);
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("%s", strlog);
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s", strlog);
 	}
 }
 

+ 1 - 1
Other/unix/libaudioframework/audiomicspkpulse.c

@@ -467,7 +467,7 @@ static void  stream_write_request_cb(pa_stream* s, size_t length, void* data)
 								audio_micspk->on_audio_playing((void*)delaybuffer, RVC_DELAY_AUDIO_LEN, audio_micspk->user_data);
 							}
 							else {
-								audio_log_v(AUDIO_LOG_LEVEL_INFO, "%s:%d on_audio_playing is NULL.", __FUNCTION__, __LINE__);
+								audio_log_v(AUDIO_LOG_LEVEL_DEBUG, "%s:%d on_audio_playing is NULL.", __FUNCTION__, __LINE__);
 							}
 							//if (0 == audio_micspk->on_audio_play_ns(audionsbuffer, RVC_DELAY_AUDIO_LEN, delaybuffer, RVC_DELAY_AUDIO_LEN, audio_micspk->user_data)) {
 								if (audio_ctx->uaudio_len + RVC_DELAY_AUDIO_LEN <= RVC_MAX_AUDIO_BUFFER_LEN) {

+ 1 - 1
Other/win/libaudioframework/audiomicspk2.c

@@ -408,7 +408,7 @@ static int StreamCallback(const void *input,
 					micspk->on_audio_playing((void*)data, RVC_DELAY_AUDIO_LEN, micspk->user_data);
 				}
 				else {
-					audio_log_v(AUDIO_LOG_LEVEL_INFO, "%s:%d on_audio_playing is NULL.", __FUNCTION__, __LINE__);
+					audio_log_v(AUDIO_LOG_LEVEL_DEBUG, "%s:%d on_audio_playing is NULL.", __FUNCTION__, __LINE__);
 				}
 			}
 			speex_resampler_process_int((SpeexResamplerState*)micspk->output_resample_state, 0,