rework most of the logging

This commit is contained in:
jonaswinkler
2021-02-05 01:10:29 +01:00
parent 0d3ab3aaf7
commit 431d4fd8e4
18 changed files with 80 additions and 71 deletions

View File

@@ -102,6 +102,8 @@ def get_mailbox(server, port, security):
class MailAccountHandler(LoggingMixin):
logging_name = "paperless.mail"
def _correspondent_from_name(self, name):
try:
return Correspondent.objects.get_or_create(name=name)[0]