From 4dd184cc2f1814cd416dac0e732d3fe8bdd24da1 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Fri, 23 Sep 2022 12:38:31 -0500 Subject: [PATCH] Remove unnecessary log.withField calls --- cmd/test-cli/main.go | 2 +- server/mock_types.go | 2 +- server/service.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/test-cli/main.go b/cmd/test-cli/main.go index 91ff2ab1..c30b0b6d 100644 --- a/cmd/test-cli/main.go +++ b/cmd/test-cli/main.go @@ -15,7 +15,7 @@ import ( "github.com/flashbots/mev-boost/server" ) -var log = logrus.WithField("service", "cmd/test-cli") +var log = logrus.NewEntry(logrus.New()) func doGenerateValidator(filePath string, gasLimit uint64, feeRecipient string) { v := newRandomValidator(gasLimit, feeRecipient) diff --git a/server/mock_types.go b/server/mock_types.go index 0f6822bf..93036afb 100644 --- a/server/mock_types.go +++ b/server/mock_types.go @@ -7,7 +7,7 @@ import ( ) // testLog is used to log information in the test methods -var testLog = logrus.WithField("testing", true) +var testLog = logrus.NewEntry(logrus.New()) // _HexToBytes converts a hexadecimal string to a byte array func _HexToBytes(hex string) []byte { diff --git a/server/service.go b/server/service.go index a1a08f05..9e7f56d2 100644 --- a/server/service.go +++ b/server/service.go @@ -86,7 +86,7 @@ func NewBoostService(opts BoostServiceOpts) (*BoostService, error) { listenAddr: opts.ListenAddr, relays: opts.Relays, relayMonitors: opts.RelayMonitors, - log: opts.Log.WithField("module", "service"), + log: opts.Log, relayCheck: opts.RelayCheck, bids: make(map[bidRespKey]bidResp),