Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrajovic committed Jul 21, 2023
1 parent 54de1c1 commit 799fc41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 4 additions & 3 deletions orchestrator/ethereum/committer/eth_committer.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ func (e *ethCommitter) SendTx(
return nil
} else {
log.WithFields(log.Fields{
"txHash": txHash.Hex(),
"txHashRet": txHashRet.Hex(),
}).WithError(err).Warningln("SendTransaction failed with error")
"tx_hash": txHash.Hex(),
}).WithError(err).Warningln("failed to send tx")
}

switch {
Expand Down Expand Up @@ -199,6 +198,8 @@ func (e *ethCommitter) SendTx(
}); err != nil {
metrics.ReportFuncError(e.svcTags)

log.WithError(err).Errorln("SendTx serialize failed")

return common.Hash{}, err
}

Expand Down
6 changes: 2 additions & 4 deletions orchestrator/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ type ethSigner struct {
}

func (s *ethSigner) run(ctx context.Context, injective InjectiveNetwork) error {
s.log.Infoln("scanning Injective for unconfirmed batches and valset updates")

if err := s.signNewValsetUpdates(ctx, injective); err != nil {
return err
}
Expand All @@ -78,8 +80,6 @@ func (s *ethSigner) run(ctx context.Context, injective InjectiveNetwork) error {
}

func (s *ethSigner) signNewBatches(ctx context.Context, injective InjectiveNetwork) error {
s.log.Infoln("scanning Injective for unconfirmed batch")

oldestUnsignedTransactionBatch, err := s.getUnsignedBatch(ctx, injective)
if err != nil {
return err
Expand Down Expand Up @@ -149,8 +149,6 @@ func (s *ethSigner) signNewValsetUpdates(
ctx context.Context,
injective InjectiveNetwork,
) error {
s.log.Infoln("scanning Injective for unconfirmed valset updates")

oldestUnsignedValsets, err := s.getUnsignedValsets(ctx, injective)
if err != nil {
return err
Expand Down

0 comments on commit 799fc41

Please sign in to comment.