修改区块链日志,使用mongdb存储,只记录错误日志

This commit is contained in:
zhangqinbin
2022-04-22 17:04:17 +08:00
parent 22c7de9b47
commit a6a77438ea

View File

@ -140,10 +140,13 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl<CrypConfigureMappe
blockChainLog.setStatus(1);
blockChainLog.setResult(e.getMessage());
}finally {
if("1".equals(blockChainLog.getStatus())){
log.error("区块链调用失败!~-----------------");
operationLogService.addOperationLog("区块链同步失败信息,参数{}"+json+"返回信息{}"+str,false, EbtpLogBusinessModule.CRYPT_DECRYPT, EbtpLogType.INSERT);
}
}
if("1".equals(blockChainLog.getStatus())){
operationLogService.addOperationLog("区块链同步失败信息,参数{}"+json+"返回信息{}"+str,false, EbtpLogBusinessModule.CRYPT_DECRYPT, EbtpLogType.INSERT);
}
//this.iBlockChainLogService.save(blockChainLog);
return false;