Skip to content

Commit 8d40c44

Browse files
authored
Merge pull request #905 from k8s-infra-cherrypick-robot/cherry-pick-904-to-release-1.4
[release-1.4] Fix debug sync log line
2 parents f61dee2 + 010ad49 commit 8d40c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ func safelyCall(fn func(*Tx) error, tx *Tx) (err error) {
10801080
// then it allows you to force the database file to sync against the disk.
10811081
func (db *DB) Sync() (err error) {
10821082
if lg := db.Logger(); lg != discardLogger {
1083-
lg.Debug("Syncing bbolt db (%s)", db.path)
1083+
lg.Debugf("Syncing bbolt db (%s)", db.path)
10841084
defer func() {
10851085
if err != nil {
10861086
lg.Errorf("[GOOS: %s, GOARCH: %s] syncing bbolt db (%s) failed: %v", runtime.GOOS, runtime.GOARCH, db.path, err)

0 commit comments

Comments
 (0)