mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Disable pogreb log output
This commit is contained in:
@@ -8,6 +8,8 @@ package store
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"log"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -24,6 +26,8 @@ type PogrebStore struct {
|
||||
|
||||
// NewPogrebStore create a properly initialized Pogreb store.
|
||||
func NewPogrebStore(filename string) (store *PogrebStore, err error) {
|
||||
pogreb.SetLogger(log.New(io.Discard, "", 0))
|
||||
|
||||
// if the database does not exist, it will be created
|
||||
db, err := pogreb.Open(filename, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user