Skip to content

Commit

Permalink
download: log basic stats for each list
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jan 14, 2025
1 parent c493195 commit fbd43e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func (dl *downloader) RefreshAll(ctx context.Context) (Stats, error) {
go func() {
defer close(resultsDone)
for list := range preparedLists {
logger.Info().Logf("adding %d entities from %v", len(list.Entities), list.ListName)

stats.Lists[string(list.ListName)] = len(list.Entities)
stats.Entities = append(stats.Entities, list.Entities...)
}
Expand Down

0 comments on commit fbd43e4

Please sign in to comment.