ipld-eth-beacon-indexer/pkg/loghelper/log_url.go
Abdul Rabbani 87313887a4 Graceful Shutdown | Handle SSE | Requires Testing
This Commit contains the following:
* Graceful shutdowns.
* Handling all incoming SSE events for reorgs, finalizations, and head.

The structure of the `BeaconClient` has drastically changed and generics are used.
2022-04-26 13:57:01 -04:00

13 lines
224 B
Go

package loghelper
import (
log "github.com/sirupsen/logrus"
)
// A simple helper function that will help wrap the error message.
func LogUrl(url string) *log.Entry {
return log.WithFields(log.Fields{
"url": url,
})
}