Skip to content

Commit

Permalink
eth: log discovery DNS information on backend startup
Browse files Browse the repository at this point in the history
I thought this used to exist, but
I don't see logs around bootnodes/discovery
config anymore, so I'm adding them
because I like verbose logging.

Date: 2023-11-02 17:01:51-06:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Nov 2, 2023
1 parent d406fd3 commit 8011c59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {

// Setup DNS discovery iterators.
dnsclient := dnsdisc.NewClient(dnsdisc.Config{})
log.Info("DNS client configuring discovery", "eth.urls", config.EthDiscoveryURLs, "snap.urls", eth.config.SnapDiscoveryURLs)
eth.ethDialCandidates, err = dnsclient.NewIterator(eth.config.EthDiscoveryURLs...)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8011c59

Please sign in to comment.