Merge pull request #774 from andyxning/change_FileMode_formatter_to_s

change FileMode var formatter to %s
pull/776/head
Benjamin Wang 2024-06-25 11:04:59 +01:00 committed by GitHub
commit 065ba27ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)