Explorar o código

Z991239-4486 #comment 增加指纹模板生成天眼日志

Signed-Off-By: commit-hook
刘文涛80174520 %!s(int64=2) %!d(string=hai) anos
pai
achega
5dd72688d6

+ 2 - 0
Module/mod_FingerPrint/FingerPrintFSM.cpp

@@ -1135,11 +1135,13 @@ int CFingerPrintFSM::GenerateTemplate(SpReqAnsContext<FingerPrintService_Generat
 	DeleteBmp(BmpImage);
 	if (errCode == Error_Succeed) {
 		//DbgInfo("Image2Template success.");
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode(FingerPrint_Generate_Template_ID)("指纹仪模板生成成功");
 		ctx->Answer(Error_Succeed);
 	}
 	else {
 		SetErrPackage("generate template failed", m_csDevSN, Error_Unexpect, FingerPrint_UserErrorCode_GETTEMPLATE_FAILED);
 		AlarmDEC();
+		DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER)("指纹仪模板生成失败");
 		ctx->Answer(errCode, FingerPrint_UserErrorCode_GETTEMPLATE_FAILED);
 	}
 

+ 1 - 0
Module/mod_FingerPrint/FingerPrint_UserErrorCode.h

@@ -4,6 +4,7 @@
 
 #define FingerPrint_Open_ID "QLR040220499"
 #define FingerPrint_Scan_ID "QLR040220407"
+#define FingerPrint_Generate_Template_ID "QLR040220408"
 
 #define FingerPrint_UserErrorCode_Start									0x20400200
 #define FingerPrint_UserErrorCode_GET_DLLNAME_FAILED_ONINIT				( FingerPrint_UserErrorCode_Start + 1 )		//指纹仪实体初始化时,获取适配器名称失败 - LogWarn