add progress debug for bolt creation

This commit is contained in:
Umputun
2019-04-05 16:42:36 -05:00
parent bf17b31eaa
commit e1d4c9ef23
@@ -65,6 +65,7 @@ func NewBoltDB(options bolt.Options, sites ...BoltSite) (*BoltDB, error) {
if _, e := tx.CreateBucketIfNotExists([]byte(bktName)); e != nil {
return errors.Wrapf(e, "failed to create top level bucket %s", bktName)
}
log.Printf("[DEBUG] created bucket %s", string(bktName))
}
return nil
})
@@ -74,6 +75,7 @@ func NewBoltDB(options bolt.Options, sites ...BoltSite) (*BoltDB, error) {
}
result.dbs[site.SiteID] = db
log.Printf("[DEBUG] bolt store created for %+v", site.SiteID)
}
return &result, nil
}