From 164be3cfed18ad2d0ff81f0b7080a399d1117287 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Sat, 7 Nov 2020 23:26:18 +0100 Subject: [PATCH] removed logging from index since it was causing issues with migrations and missing logging groups --- src/documents/index.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/documents/index.py b/src/documents/index.py index 3fa8bd353..e08d016d2 100644 --- a/src/documents/index.py +++ b/src/documents/index.py @@ -68,7 +68,6 @@ def open_index(recreate=False): def update_document(writer, doc): - logging.getLogger(__name__).debug("Updating index with document{}".format(str(doc))) writer.update_document( id=doc.pk, title=doc.title, @@ -86,7 +85,6 @@ def add_document_to_index(sender, instance, **kwargs): @receiver(models.signals.post_delete, sender=Document) def remove_document_from_index(sender, instance, **kwargs): - logging.getLogger(__name__).debug("Removing document {} from index".format(str(instance))) ix = open_index() with AsyncWriter(ix) as writer: writer.delete_by_term('id', instance.pk)