mirror of https://github.com/etcd-io/bbolt.git
parent
ca69ea0c2c
commit
7eb11b0d67
2
db.go
2
db.go
|
@ -1080,7 +1080,7 @@ func safelyCall(fn func(*Tx) error, tx *Tx) (err error) {
|
|||
// then it allows you to force the database file to sync against the disk.
|
||||
func (db *DB) Sync() (err error) {
|
||||
if lg := db.Logger(); lg != discardLogger {
|
||||
lg.Debug("Syncing bbolt db (%s)", db.path)
|
||||
lg.Debugf("Syncing bbolt db (%s)", db.path)
|
||||
defer func() {
|
||||
if err != nil {
|
||||
lg.Errorf("[GOOS: %s, GOARCH: %s] syncing bbolt db (%s) failed: %v", runtime.GOOS, runtime.GOARCH, db.path, err)
|
||||
|
|
Loading…
Reference in New Issue