Skip to content

Commit

Permalink
print RPC errors to log when sending transactions via `generate_eoa_t…
Browse files Browse the repository at this point in the history
…ransactions` / `generate_blob_transactions`
  • Loading branch information
pk910 committed Feb 22, 2024
1 parent 1edb6e2 commit f1a2c8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/coordinator/tasks/generate_blob_transactions/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ func (t *Task) generateTransaction(ctx context.Context, transactionIdx uint64, c
if err == nil {
break
}

t.logger.WithFields(logrus.Fields{
"client": client.GetName(),
}).Warnf("RPC error when sending tx %v: %v", transactionIdx, err)
}

if err != nil {
Expand Down
4 changes: 4 additions & 0 deletions pkg/coordinator/tasks/generate_eoa_transactions/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ func (t *Task) generateTransaction(ctx context.Context, transactionIdx uint64, c
if err == nil {
break
}

t.logger.WithFields(logrus.Fields{
"client": client.GetName(),
}).Warnf("RPC error when sending tx %v: %v", transactionIdx, err)
}

if err != nil {
Expand Down

0 comments on commit f1a2c8a

Please sign in to comment.