Jelajahi Sumber

Z991239-6292 #comment feat: 精简日志

Signed-Off-By: commit-hook
刘文涛80174520 4 bulan lalu
induk
melakukan
0233e3074e
1 mengubah file dengan 6 tambahan dan 14 penghapusan
  1. 6 14
      Module/mod_cardissuerstore/CardIssuerStoreFSM.cpp

+ 6 - 14
Module/mod_cardissuerstore/CardIssuerStoreFSM.cpp

@@ -4334,7 +4334,6 @@ int CCardIssuerFSM::WriteCard(SpReqAnsContext<CardIssuerStoreService_WriteTrack_
 			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("从卡箱移动卡片到磁条写卡位置失败");
 			DWORD dwTmpUserErrCode = SetErrorAndLog(eErr, MEC_DEVAPI_CARDISSUER_CI_MOVECARD_MAG_POSITION, "DevAdapter::MoveCard", __FUNCTION__, true, l_endTime - l_beginTime, "QLR040222015", "");
 			ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
-			//ctx->Answer(Error_Unexpect, GetAlarmDEC());
 			return ret;
 		}
 		else {
@@ -4696,7 +4695,7 @@ int CCardIssuerFSM::QueryCardInfo()
 		else
 			ret = 1;
 	}
-	DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("QueryCardInfo, ret:%d", ret);
+	DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("QueryCardInfo, ret:%d", ret);
 	return ret;
 }
 
@@ -4737,15 +4736,8 @@ int CCardIssuerFSM::UpdateLocalRunCfg(CAutoArray<int> hopperArr)
 			spConfig->WriteConfigValueInt(sec, "CardPercent", m_CardPercentEx[i]);
 			spConfig->WriteConfigValue(sec, "Maintainer", m_MaintainerEx[i]);
 			spConfig->WriteConfigValue(sec, "MaintainTime", m_csMaintainTimeEx[i]);
-			//if (i == 0 && hopperArr[0] == 1)
-			//{
-			//	spConfig->WriteConfigValueInt("RunInfo", "CardInit", m_CardInitEx[i]);
-			//	spConfig->WriteConfigValueInt("RunInfo", "CardRemains", m_remainsEx[i]);
-			//	spConfig->WriteConfigValueInt("RunInfo", "CardIssued", m_issuedEx[i]);
-			//	spConfig->WriteConfigValueInt("RunInfo", "CardMixed", m_mixedEx[i]);
-			//	spConfig->WriteConfigValueInt("RunInfo", "CardPercent", m_CardPercentEx[i]);
-			//}
-			DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("UpdateLocalRunCfg, sec:%s,CardBoxNo:%s,CardInit:%d,CardRemains:%d,CardIssued:%d",
+
+			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("UpdateLocalRunCfg, sec:%s,CardBoxNo:%s,CardInit:%d,CardRemains:%d,CardIssued:%d",
 				sec, m_CardBoxNoEx[i].GetData(), m_CardInitEx[i], m_remainsEx[i], m_issuedEx[i]);
 		}
 	}
@@ -4759,7 +4751,7 @@ int CCardIssuerFSM::SyncDataToDB(bool bMaintain[12], bool bSetCaptured)
 	info.dwCardBoxNum = m_hopperNum;
 	info.strDeviceNo = m_terminalNo;
 
-	DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("<SyncDataToDB>, to init sync info, CardBox Num:%d, DeviceNo:%s", info.dwCardBoxNum, info.strDeviceNo.GetData());
+	DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("<SyncDataToDB>, to init sync info, CardBox Num:%d, DeviceNo:%s", info.dwCardBoxNum, info.strDeviceNo.GetData());
 	info.arrMaintainFlag.Init(m_hopperNum+1);
 	info.arrMaintainer.Init(m_hopperNum+1);
 	info.arrMaintainTime.Init(m_hopperNum+1);
@@ -4786,7 +4778,7 @@ int CCardIssuerFSM::SyncDataToDB(bool bMaintain[12], bool bSetCaptured)
 		info.arrCardMixed[i] = m_mixedEx[i];
 		info.arrCardPercent[i] = m_CardPercentEx[i];
 
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("hopper(%d), Maintain:%d, MaintainerEx:%s, MaintainTimeEx:%d, CardBoxNoEx:%s, PsbCodeEx:%s, PsbNameEx:%s, CardInitEx:%d, RemainsEx:%d, IssuedEx:%d, MixedEx:%d, CardPercentEx:%d",
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("hopper(%d), Maintain:%d, MaintainerEx:%s, MaintainTimeEx:%d, CardBoxNoEx:%s, PsbCodeEx:%s, PsbNameEx:%s, CardInitEx:%d, RemainsEx:%d, IssuedEx:%d, MixedEx:%d, CardPercentEx:%d",
 			i, bMaintain[i],
 			m_MaintainerEx[i].GetData(),
 			m_MaintainTimeEx[i],
@@ -4818,7 +4810,7 @@ int CCardIssuerFSM::SyncDataToDB(bool bMaintain[12], bool bSetCaptured)
 		info.arrCardIssued[m_hopperNum] = 0;
 		info.arrCardMixed[m_hopperNum] = 0;
 		info.arrCardPercent[m_hopperNum] = 0;
-		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("MaintainFlag:%d, CardRemains:%d, Maintainer:%s, MaintainTime:%d",
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("MaintainFlag:%d, CardRemains:%d, Maintainer:%s, MaintainTime:%d",
 			info.arrMaintainFlag[m_hopperNum],
 			info.arrCardRemains[m_hopperNum],
 			info.arrMaintainer[m_hopperNum].GetData(),