change FileMode var formatter to %s

Signed-off-by: Andy Xie <andy.xning@gmail.com>
pull/774/head
Andy Xie 2024-06-25 11:35:33 +08:00
parent f8ffaee87a
commit 3a7dc77481
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -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)