Skip to content

Commit

Permalink
feat(pkg): update logs when dialing ethclients (taikoxyz#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jun 6, 2023
1 parent b5c0e40 commit 12016cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/rpc/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func DialClientWithBackoff(ctx context.Context, url string) (*ethclient.Client,
if err := backoff.Retry(
func() (err error) {
client, err = ethclient.DialContext(ctx, url)
log.Error("Dial ethclient error", "url", url, "error", err)
if err != nil {
log.Error("Dial ethclient error", "url", url, "error", err)
}
return err
},
backoff.NewConstantBackOff(12*time.Second),
Expand Down

0 comments on commit 12016cf

Please sign in to comment.