BadgerDB: set logging level to INFO (#367)

This commit is contained in:
Nikolay Edigaryev 2025-11-11 22:43:48 +04:00 committed by GitHub
parent c8c9fe2745
commit 4e0dc749d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ type Transaction struct {
}
func NewBadgerStore(dbPath string, noCompression bool, logger *zap.SugaredLogger) (store.Store, error) {
opts := badger.DefaultOptions(dbPath).WithLogger(newBadgerLogger(logger))
opts := badger.DefaultOptions(dbPath).
WithLogger(newBadgerLogger(logger)).
WithLoggingLevel(badger.INFO)
opts.SyncWrites = true