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.
13 lines
224 B
Go
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,
|
|
})
|
|
}
|