1
0

chore(typesense): add more debug logging

(cherry picked from commit e4584109dfc39099dff0de174c49fa87d02a2c0e)
This commit is contained in:
kolaente 2024-09-20 08:33:03 +02:00
parent b321ad5fc0
commit a87419fa07
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -311,6 +311,7 @@ func reindexTasksInTypesense(s *xorm.Session, tasks map[int64]*Task) (err error)
return err
}
if ttask == nil {
log.Debugf("Converted typesense task %d is nil, not indexing", task.ID)
continue
}
@ -324,11 +325,11 @@ func reindexTasksInTypesense(s *xorm.Session, tasks map[int64]*Task) (err error)
BatchSize: pointer.Int(100),
})
if err != nil {
log.Errorf("Could not upsert task into Typesense", err)
log.Errorf("Could not upsert task into Typesense: %s", err)
return err
}
log.Debugf("Indexed %d tasks into Typesense", len(tasks))
log.Debugf("Indexed %d tasks into Typesense", len(typesenseTasks))
return nil
}