Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLollipop committed Sep 25, 2024
1 parent 8c5151b commit c57a4a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/boltdb/local_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ func GetLocalAppInfoMap() (appMap map[string]*models.ApplicationInfo, err error)
appMap = make(map[string]*models.ApplicationInfo)
glog.Infof("Initializing GetLocalAppInfoMap")

if bdbClient == nil {
glog.Infof("bdbClient is nil")
return
}

if bdbClient.bdb == nil {
glog.Infof("bdbClient.bdb is nil")
return
}

err = bdbClient.bdb.View(func(tx *bolt.Tx) error {
bucket := tx.Bucket([]byte(LocalDevAppsBucketName))
if bucket == nil {
Expand Down

0 comments on commit c57a4a4

Please sign in to comment.