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

This commit is contained in:
zhangqinbin
2022-04-22 16:51:33 +08:00
parent 044a876440
commit 22c7de9b47

View File

@ -139,9 +139,11 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl<CrypConfigureMappe
} catch (Exception e) { } catch (Exception e) {
blockChainLog.setStatus(1); blockChainLog.setStatus(1);
blockChainLog.setResult(e.getMessage()); blockChainLog.setResult(e.getMessage());
}
if("1".equals(blockChainLog.getStatus())){
operationLogService.addOperationLog("区块链同步失败信息,参数{}"+json+"返回信息{}"+str,false, EbtpLogBusinessModule.CRYPT_DECRYPT, EbtpLogType.INSERT); operationLogService.addOperationLog("区块链同步失败信息,参数{}"+json+"返回信息{}"+str,false, EbtpLogBusinessModule.CRYPT_DECRYPT, EbtpLogType.INSERT);
} }
//this.iBlockChainLogService.save(blockChainLog); //this.iBlockChainLogService.save(blockChainLog);
return false; return false;