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:
2025-08-16 20:01:25 +01:00
parent 0d81d48c25
commit 6c04646b79

View File

@@ -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
}