Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jan 24, 2025
1 parent 1a69265 commit 43b0d4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ export class StorageIndexAdapter<TStorageSettings extends IndexStorageSettings>
* Get items from all non-write indices for the specified ids.
*/
private async getDanglingItems({ ids }: { ids: string[] }) {
this.logger.fatal('Getting dangling items' + JSON.stringify(ids));
this.logger.error('Getting dangling items' + JSON.stringify(ids));
if (!ids.length) {
return [];
}

const writeIndex = await this.getCurrentWriteIndexName();
this.logger.fatal('Write index: ' + writeIndex);
this.logger.error('Write index: ' + writeIndex);

if (writeIndex) {
const danglingItemsResponse = await this.search({
Expand All @@ -309,7 +309,7 @@ export class StorageIndexAdapter<TStorageSettings extends IndexStorageSettings>
},
size: 10_000,
});
this.logger.fatal('Dangling items response: ' + JSON.stringify(danglingItemsResponse));
this.logger.error('Dangling items response: ' + JSON.stringify(danglingItemsResponse));

return danglingItemsResponse.hits.hits.map((hit) => ({
id: hit._id!,
Expand Down

0 comments on commit 43b0d4a

Please sign in to comment.