Skip to content

Commit

Permalink
Switch badger logger to logrus
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 committed Mar 9, 2020
1 parent d6fed3e commit f1053c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon/db/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type BadgerDB struct {
// NewBadgerDB initializes the badger database with the supplied directories.
func NewBadgerDB(databaseDir string) *BadgerDB {
opts := badger.DefaultOptions(databaseDir)
opts = opts.WithLogger(logrus.StandardLogger())
opts.ValueLogFileSize = 8 << 20

if runtime.GOOS == "windows" {
Expand Down

0 comments on commit f1053c6

Please sign in to comment.