From b08ea3afdfc9db58e7140d6394379372d31ed4a2 Mon Sep 17 00:00:00 2001 From: ANDREY KHASANOV Date: Wed, 27 Dec 2023 22:55:04 +0200 Subject: [PATCH] Add debug log in CleanWrongIndexes function 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. --- internal/repo/tweets.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/repo/tweets.go b/internal/repo/tweets.go index 569c126..87211fc 100644 --- a/internal/repo/tweets.go +++ b/internal/repo/tweets.go @@ -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