mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Moved logging logic into the consumer
This commit is contained in:
parent
b11825832d
commit
ca21929cee
2 changed files with 5 additions and 21 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue