From 2e600cc6e25c1d65b5a732d979e927bd6e959cd2 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Fri, 23 Sep 2022 10:49:28 -0500 Subject: [PATCH] Print relays/monitors on individual lines --- cli/main.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cli/main.go b/cli/main.go index c11e0477..3d7cb85f 100644 --- a/cli/main.go +++ b/cli/main.go @@ -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() { @@ -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{