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

Z991239-5424 #comment feat: 去除发送成功的日志

Signed-Off-By: commit-hook
刘文涛80174520 1 жил өмнө
parent
commit
4ffc7c59dd

+ 3 - 3
Module/mod_alarm/AlarmFSM.cpp

@@ -17,8 +17,8 @@ namespace Task
 			while(true){
 
 				if(m_fsm->m_NewUploading_alarm.empty()&&m_fsm->m_unSendAlarm.IsNullOrEmpty()){
-					if(logSum>=120){
-						DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("no warn,wait 6min");
+					if(logSum>=1200){
+						DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("no warn,wait 1 hour");
 						logSum=0;
 					}else{
 						logSum++;
@@ -112,7 +112,7 @@ namespace Task
 
 			bool isSucc = rootRet["success"].asBool();
 			if(isSucc){
-				DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("SendAlarmTaskImpl")("SendAlarmTask [success] is succ,m_eachSum=%d",m_fsm->m_eachSum);
+				//DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("SendAlarmTaskImpl")("SendAlarmTask [success] is succ,m_eachSum=%d",m_fsm->m_eachSum);
 				m_fsm->m_unSendAlarm="";//置为空
 				m_fsm->m_iSucc = m_fsm->m_iSucc+ m_fsm->m_eachSum ;//发送成功
 				m_fsm->m_eachSum = 0;//清空批次数量