More precise log message for skipped attachments

This commit is contained in:
Raphael Michel
2019-04-23 11:16:36 +02:00
parent 91b2d7989a
commit 9c3abc5338
2 changed files with 3 additions and 1 deletions

View File

@@ -229,7 +229,7 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
pass
else:
order.log_action(
'pretix.event.order.email.error',
'pretix.event.order.email.attachments.skipped',
data={
'subject': 'Attachments skipped',
'message': 'Attachment have not been send because {} bytes are likely too large to arrive.'.format(attach_size),