Skip to content

Commit b93920e

Browse files
authored
Log submitted swap transactions (#101)
1 parent 8c6590e commit b93920e

File tree

1 file changed

+2
-1
lines changed
  • pkg/code/server/grpc/transaction/v2

1 file changed

+2
-1
lines changed

pkg/code/server/grpc/transaction/v2/swap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"context"
66
"crypto/ed25519"
7+
"encoding/base64"
78
"time"
89

910
"github.com/mr-tron/base58"
@@ -373,7 +374,7 @@ func (s *transactionServer) Swap(streamer transactionpb.Transaction_SwapServer)
373374
)
374375
}
375376

376-
log.Debug("submitted transaction")
377+
log.WithField("txn", base64.StdEncoding.EncodeToString(txn.Marshal())).Info("transaction submitted")
377378

378379
err = s.bestEffortNotifyUserOfSwapInProgress(ctx, owner)
379380
if err != nil {

0 commit comments

Comments
 (0)