From b523cff405d02824365ce816e3ec5416cb92c832 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 12:57:36 -0500 Subject: [PATCH] fix logs --- x/oracle/abci/proposal.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 580a98cd..9e7bb3b4 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -248,10 +248,10 @@ func (h *ProposalHandler) verifyExchangeRateVotes( generatedVote := generatedVotes[i] if injectedVote.Voter != generatedVote.Voter || !injectedVote.ExchangeRates.Equal(generatedVote.ExchangeRates) { - h.logger.Info("injected voter %s", injectedVote.Voter) - h.logger.Info("generated voter %s", generatedVote.Voter) - h.logger.Info("injected voter %+v", injectedVote.ExchangeRates) - h.logger.Info("injected voter %+v", generatedVote.ExchangeRates) + h.logger.Info("injected", "voter %s", injectedVote.Voter) + h.logger.Info("generated", "voter %s", generatedVote.Voter) + h.logger.Info("injected", "voter %+v", injectedVote.ExchangeRates) + h.logger.Info("injected", "voter %+v", generatedVote.ExchangeRates) return oracletypes.ErrNonEqualInjVotesRates } } @@ -305,16 +305,16 @@ func (h *ProposalHandler) verifyExternalLiquidity( generatedExternalLiquidity := generatedExternalLiquidityList[i] if injectedExternalLiquidity.PoolId != generatedExternalLiquidity.PoolId { - h.logger.Info("injected PoolId %d", injectedExternalLiquidity.PoolId) - h.logger.Info("generated PoolId %d", generatedExternalLiquidity.PoolId) + h.logger.Info("injected", "PoolId %d", injectedExternalLiquidity.PoolId) + h.logger.Info("generated", "PoolId %d", generatedExternalLiquidity.PoolId) return oracletypes.ErrNonEqualInjVotesRates } if len(injectedExternalLiquidity.AmountDepthInfo) != len(generatedExternalLiquidity.AmountDepthInfo) || injectedExternalLiquidity.AmountDepthInfo[0] != generatedExternalLiquidity.AmountDepthInfo[0] || injectedExternalLiquidity.AmountDepthInfo[1] != generatedExternalLiquidity.AmountDepthInfo[1] { - h.logger.Info("injected ExternalLiquidity AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo) - h.logger.Info("generated ExternalLiquidity AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo) + h.logger.Info("injected ExternalLiquidity", "AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo) + h.logger.Info("generated ExternalLiquidity", "AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo) return oracletypes.ErrNonEqualInjVotesRates } }