mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-04-27 13:12:47 +00:00
Merge pull request #774 from andyxning/change_FileMode_formatter_to_s
change FileMode var formatter to %s
This commit is contained in:
commit
065ba27ab6
2
db.go
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user