d7ad4108a7
This concludes all the code needed to connect to the DB and beacon node. We will no longer reference the lighthouse client because this application should work interchangeably with any beacon node. I have also standardized logging.
14 lines
275 B
Go
14 lines
275 B
Go
// A simple function to help with logging errors.
|
|
package loghelper
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// A simple helper function that will help wrap the error message.
|
|
func LogError(err error) *log.Entry {
|
|
return log.WithFields(log.Fields{
|
|
"err": err,
|
|
})
|
|
}
|