Remove Database closed log message

This commit is contained in:
Eduard S
2021-01-19 12:23:50 +01:00
parent 5a669a1b39
commit ba186604a7
4 changed files with 0 additions and 10 deletions

View File

@@ -2,7 +2,6 @@ package leveldb
import (
"github.com/iden3/go-merkletree/db"
log "github.com/sirupsen/logrus"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/opt"
@@ -127,7 +126,6 @@ func (l *Storage) Close() {
if err := l.ldb.Close(); err != nil {
panic(err)
}
log.Info("Database closed")
}
// LevelDB is an extra method that returns the *leveldb.DB

View File

@@ -3,7 +3,6 @@ package pebble
import (
"github.com/cockroachdb/pebble"
"github.com/iden3/go-merkletree/db"
log "github.com/sirupsen/logrus"
)
// Storage implements the db.Storage interface
@@ -144,7 +143,6 @@ func (p *Storage) Close() {
if err := p.pdb.Close(); err != nil {
panic(err)
}
log.Info("Database closed")
}
// Pebble is an extra method that returns the *pebble.DB