Skip to content

Commit 570f849

Browse files
committed
Also log upper/lower bound native amounts
1 parent b414698 commit 570f849

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/code/currency/validation.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ func validateCurrencyLaunchpadClientExchangeData(ctx context.Context, data code_
135135
coreMintSellValueInUnits := float64(coreMintSellValueInQuarks) / float64(coreMintQuarksPerUnit)
136136
potentialNativeAmount := otherExchangeRateRecord.Rate * coreMintSellValueInUnits / usdExchangeRateRecord.Rate
137137
if potentialNativeAmount < nativeAmountLowerBound || potentialNativeAmount > nativeAmountUpperBound {
138-
log.WithField("potential_native_amount", potentialNativeAmount).Info("native amount is outside error threshold")
138+
log.WithFields(logrus.Fields{
139+
"native_amount_lower_bound": nativeAmountLowerBound,
140+
"native_amount_upper_bound": nativeAmountUpperBound,
141+
"potential_native_amount": potentialNativeAmount,
142+
}).Info("native amount is outside error threshold")
139143
continue
140144
}
141145

0 commit comments

Comments
 (0)