Skip to content

Commit cac0f00

Browse files
committed
chore: add debug log message
1 parent 3cf1f69 commit cac0f00

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runtime/index.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ func (s *SearchIndex) add(id string, data any) {
159159
if s.idx == nil {
160160
return
161161
}
162+
log.Debugf("adding %s to search index", id)
162163
err := s.idx.Index(id, data)
163164
if err != nil {
164165
log.Errorf("add '%s' to search index failed: %v", id, err)
@@ -170,6 +171,7 @@ func (s *SearchIndex) Delete(id string) {
170171
return
171172
}
172173
s.queue <- func() {
174+
log.Debugf("removing %s from search index", id)
173175
_ = s.idx.Delete(id)
174176
}
175177
}

0 commit comments

Comments
 (0)