mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-18 22:48:57 +02:00
BadgerDB: set logging level to INFO (#367)
This commit is contained in:
@@ -23,7 +23,9 @@ type Transaction struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewBadgerStore(dbPath string, noCompression bool, logger *zap.SugaredLogger) (store.Store, error) {
|
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
|
opts.SyncWrites = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user