修改区块链日志,使用mongdb存储,只记录错误日志
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user