Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat(pkg): update logs when dialing ethclients (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Jun 6, 2023
1 parent 580e354 commit 99c980b
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 99c980b

Please sign in to comment.