Moved logging logic into the consumer

This commit is contained in:
Daniel Quinn
2016-10-26 09:52:09 +00:00
parent b11825832d
commit ca21929cee
2 changed files with 5 additions and 21 deletions

View File

@@ -142,6 +142,11 @@ class Consumer(object):
self._cleanup_tempdir(tempdir)
self._cleanup_doc(doc)
self.log(
"info",
"Document {} consumption finished".format(document)
)
document_consumption_finished.send(
sender=self.__class__,
document=document,