Skip to content

Commit

Permalink
misc(blob): Add debug logs for the GetAll method (#2749)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan <ryan@celestia.org>
Co-authored-by: ramin <raminkeene@gmail.com>
  • Loading branch information
3 people authored Oct 16, 2023
1 parent 422dea2 commit 9f2b74a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blob/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func (s *Service) GetAll(ctx context.Context, height uint64, namespaces []share.
resultErr = make([]error, len(namespaces))
)

for _, ns := range namespaces {
log.Debugw("performing GetAll request", "namespace", ns.String(), "height", height)
}

wg := sync.WaitGroup{}
for i, namespace := range namespaces {
wg.Add(1)
Expand All @@ -131,6 +135,8 @@ func (s *Service) GetAll(ctx context.Context, height uint64, namespaces []share.
resultErr[i] = fmt.Errorf("getting blobs for namespace(%s): %s", namespace.String(), err)
return
}

log.Debugw("receiving blobs", "height", height, "total", len(blobs))
resultBlobs[i] = blobs
}(i, namespace)
}
Expand Down

0 comments on commit 9f2b74a

Please sign in to comment.