]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Chore: add line to log indexing
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 15 Aug 2024 15:03:35 +0000 (08:03 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 15 Aug 2024 15:03:35 +0000 (08:03 -0700)
src/documents/index.py

index 98c43d1e883af64cbd8e34b9d5775c20679c5aa9..3bc181cb81c6363c828a1045f2c9e90f0ab9b3c8 100644 (file)
@@ -121,6 +121,7 @@ def open_index_searcher() -> Searcher:
 
 
 def update_document(writer: AsyncWriter, doc: Document):
+    logger.debug(f"Updating index for document {doc.pk}")
     tags = ",".join([t.name for t in doc.tags.all()])
     tags_ids = ",".join([str(t.id) for t in doc.tags.all()])
     notes = ",".join([str(c.note) for c in Note.objects.filter(document=doc)])