assign logger to database options
- pkg/database/database.go - Added `opts.Logger = d.Logger` to include logger in database options.
This commit is contained in:
@@ -51,6 +51,7 @@ func New(ctx context.T, cancel context.F, dataDir, logLevel string) (
|
||||
opts.BlockSize = units.Gb
|
||||
opts.CompactL0OnClose = true
|
||||
opts.LmaxCompaction = true
|
||||
opts.Logger = d.Logger
|
||||
if d.DB, err = badger.Open(opts); chk.E(err) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user