chore: add more precise logging on get unindexed collabs

This commit is contained in:
Bartosz Sypytkowski 2024-11-06 08:04:07 +01:00
parent 9c428f1d89
commit 863e405263
1 changed files with 8 additions and 2 deletions

View File

@ -105,9 +105,15 @@ impl IndexerProvider {
for cid in collabs {
match &cid.collab_type {
CollabType::Document => {
let collab = storage
let collab = match storage
.get_encode_collab(GetCollabOrigin::Server, cid.clone().into(), false)
.await?;
.await {
Ok(collab) => collab,
Err(err) => {
tracing::error!("failed to decode collab `{}`: {}", cid.object_id, err);
continue;
}
};
yield UnindexedCollab {
workspace_id: cid.workspace_id,