mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
more logging
This commit is contained in:
@@ -1026,10 +1026,15 @@ impl SearchBackend for Typesense {
|
||||
let shadow_current =
|
||||
self.config.get_next_collection_name(&alias, false);
|
||||
|
||||
debug!(
|
||||
"Inserting into alias {alias:?}, live {live:?}, shadow alt {shadow_alt:?}, shadow current {shadow_current:?}"
|
||||
);
|
||||
|
||||
for collection in
|
||||
live.into_iter().chain([shadow_alt, shadow_current])
|
||||
{
|
||||
if self.client.collection_exists(&collection).await? {
|
||||
debug!("Inserting into existing collection {collection:?}");
|
||||
self.client
|
||||
.import_documents(&collection, jsonl.clone())
|
||||
.await?;
|
||||
@@ -1037,6 +1042,7 @@ impl SearchBackend for Typesense {
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Done importing");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user