Skip to content

Commit

Permalink
Print relays/monitors on individual lines (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored Sep 23, 2022
1 parent 6a61a56 commit bca8407
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var (
useCustomGenesisForkVersion = flag.String("genesis-fork-version", defaultGenesisForkVersion, "use a custom genesis fork version")
)

var log = logrus.WithField("module", "cli")
var log = logrus.NewEntry(logrus.New())

// Main starts the mev-boost cli
func Main() {
Expand Down Expand Up @@ -119,11 +119,17 @@ func Main() {
flag.Usage()
log.Fatal("no relays specified")
}
log.WithField("relays", server.RelayEntriesToStrings(relays)).Infof("using %d relays", len(relays))
log.Infof("using %d relays", len(relays))
for index, relay := range relays {
log.Infof("relay #%d: %s", index+1, relay.String())
}

relayMonitors := parseRelayMonitorURLs(*relayMonitorURLs)
if len(relayMonitors) > 0 {
log.WithField("relay-monitors", relayMonitors).Infof("using %d relay monitors", len(relayMonitors))
log.Infof("using %d relay monitors", len(relayMonitors))
for index, relayMonitor := range relayMonitors {
log.Infof("relay-monitor #%d: %s", index+1, relayMonitor.String())
}
}

opts := server.BoostServiceOpts{
Expand Down

0 comments on commit bca8407

Please sign in to comment.