From 3a7dc774819c8d8c55e2c504c4bf4e729667daf5 Mon Sep 17 00:00:00 2001 From: Andy Xie Date: Tue, 25 Jun 2024 11:35:33 +0800 Subject: [PATCH] change FileMode var formatter to %s Signed-off-by: Andy Xie --- db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.go b/db.go index cd3c5b0ba..c6b0e7e7e 100644 --- a/db.go +++ b/db.go @@ -205,7 +205,7 @@ func Open(path string, mode os.FileMode, options *Options) (db *DB, err error) { lg := db.Logger() if lg != discardLogger { - lg.Infof("Opening db file (%s) with mode %x and with options: %s", path, mode, options) + lg.Infof("Opening db file (%s) with mode %s and with options: %s", path, mode, options) defer func() { if err != nil { lg.Errorf("Opening bbolt db (%s) failed: %v", path, err)