Skip to content

Commit 0cd38a3

Browse files
committed
Log airdrop amount metadata
1 parent e8276e0 commit 0cd38a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/code/server/transaction/airdrop.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ func (s *transactionServer) airdrop(ctx context.Context, intentId string, owner
218218
default:
219219
return nil, errors.New("unhandled airdrop type")
220220
}
221+
log = log.WithFields(logrus.Fields{
222+
"native_amount": nativeAmount,
223+
"currency": currencyCode,
224+
})
221225

222226
exchangeRateTime := exchange_rate_util.GetLatestExchangeRateTime()
223227

0 commit comments

Comments
 (0)