From 971edc2bfbb576dd97fc12ca614f3d7622ccb331 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Tue, 10 Dec 2024 12:43:20 -0800 Subject: [PATCH] fix: logs --- core/eth/reader.go | 2 +- core/eth/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/eth/reader.go b/core/eth/reader.go index 5533277072..b87724244a 100644 --- a/core/eth/reader.go +++ b/core/eth/reader.go @@ -711,7 +711,7 @@ func (t *Reader) GetOnDemandPayments(ctx context.Context, accountIDs []gethcommo // since payments are returned in the same order as the accountIDs, we can directly map them for i, payment := range payments { if payment.Cmp(big.NewInt(0)) == 0 { - t.logger.Warn("failed to get on demand payment for account", "account", accountIDs[i], "err", err) + t.logger.Warn("failed to get on demand payment for account", "account", accountIDs[i]) continue } paymentsMap[accountIDs[i]] = &core.OnDemandPayment{ diff --git a/core/eth/utils.go b/core/eth/utils.go index 544c9660e2..d98b6def2a 100644 --- a/core/eth/utils.go +++ b/core/eth/utils.go @@ -141,7 +141,7 @@ func isZeroValuedReservation(reservation paymentvault.IPaymentVaultReservation) // Returns an error if the input reservation is zero-valued. func ConvertToActiveReservation(reservation paymentvault.IPaymentVaultReservation) (*core.ActiveReservation, error) { if isZeroValuedReservation(reservation) { - return nil, fmt.Errorf("reservation does not exist for given account") + return nil, fmt.Errorf("reservation is not a valid active reservation") } return &core.ActiveReservation{