chore(typesense): add more debug logging
(cherry picked from commit e4584109dfc39099dff0de174c49fa87d02a2c0e)
This commit is contained in:
parent
b321ad5fc0
commit
a87419fa07
@ -311,6 +311,7 @@ func reindexTasksInTypesense(s *xorm.Session, tasks map[int64]*Task) (err error)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if ttask == nil {
|
if ttask == nil {
|
||||||
|
log.Debugf("Converted typesense task %d is nil, not indexing", task.ID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,11 +325,11 @@ func reindexTasksInTypesense(s *xorm.Session, tasks map[int64]*Task) (err error)
|
|||||||
BatchSize: pointer.Int(100),
|
BatchSize: pointer.Int(100),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("Could not upsert task into Typesense", err)
|
log.Errorf("Could not upsert task into Typesense: %s", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("Indexed %d tasks into Typesense", len(tasks))
|
log.Debugf("Indexed %d tasks into Typesense", len(typesenseTasks))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user