Skip to content

Commit

Permalink
Add debug log in CleanWrongIndexes function
Browse files Browse the repository at this point in the history
Added a debug log in the CleanWrongIndexes function for tracing. This allows better troubleshooting of issues and improves visibility into the function's operation and performance.
  • Loading branch information
lueurxax committed Dec 27, 2023
1 parent 607a0e2 commit b08ea3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/repo/tweets.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ func (d *db) getTweetsUntilTx(tr fdbclient.Transaction, createdAt time.Time, ch
}

func (d *db) CleanWrongIndexes(ctx context.Context) error {
d.log.Debug("CleanWrongIndexes")

pr, err := fdb.PrefixRange(d.keyBuilder.TweetRatingIndexes())
if err != nil {
return err
Expand Down

0 comments on commit b08ea3a

Please sign in to comment.