Skip to content

Commit

Permalink
log version on getHeader and getPayload (flashbots#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Sep 19, 2022
1 parent 976419d commit 90805d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (m *BoostService) handleGetHeader(w http.ResponseWriter, req *http.Request)
"slot": slot,
"parentHash": parentHashHex,
"pubkey": pubkey,
"version": config.Version,
})
log.Debug("getHeader")

Expand Down Expand Up @@ -419,7 +420,11 @@ func (m *BoostService) handleGetHeader(w http.ResponseWriter, req *http.Request)
}

func (m *BoostService) handleGetPayload(w http.ResponseWriter, req *http.Request) {
log := m.log.WithField("method", "getPayload")
log := m.log.WithFields(logrus.Fields{
"method": "getPayload",
"version": config.Version,
})

log.Debug("getPayload")

payload := new(types.SignedBlindedBeaconBlock)
Expand Down

0 comments on commit 90805d7

Please sign in to comment.