mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
More precise log message for skipped attachments
This commit is contained in:
@@ -229,7 +229,7 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
order.log_action(
|
order.log_action(
|
||||||
'pretix.event.order.email.error',
|
'pretix.event.order.email.attachments.skipped',
|
||||||
data={
|
data={
|
||||||
'subject': 'Attachments skipped',
|
'subject': 'Attachments skipped',
|
||||||
'message': 'Attachment have not been send because {} bytes are likely too large to arrive.'.format(attach_size),
|
'message': 'Attachment have not been send because {} bytes are likely too large to arrive.'.format(attach_size),
|
||||||
|
|||||||
@@ -189,6 +189,8 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs):
|
|||||||
'pretix.event.order.payment.changed': _('A new payment {local_id} has been started instead of the previous one.'),
|
'pretix.event.order.payment.changed': _('A new payment {local_id} has been started instead of the previous one.'),
|
||||||
'pretix.event.order.email.sent': _('An unidentified type email has been sent.'),
|
'pretix.event.order.email.sent': _('An unidentified type email has been sent.'),
|
||||||
'pretix.event.order.email.error': _('Sending of an email has failed.'),
|
'pretix.event.order.email.error': _('Sending of an email has failed.'),
|
||||||
|
'pretix.event.order.email.attachments.skipped': _('The email has been sent without attachments since they '
|
||||||
|
'would have been too large to be likely to arrive.'),
|
||||||
'pretix.event.order.email.custom_sent': _('A custom email has been sent.'),
|
'pretix.event.order.email.custom_sent': _('A custom email has been sent.'),
|
||||||
'pretix.event.order.email.download_reminder_sent': _('An email has been sent with a reminder that the ticket '
|
'pretix.event.order.email.download_reminder_sent': _('An email has been sent with a reminder that the ticket '
|
||||||
'is available for download.'),
|
'is available for download.'),
|
||||||
|
|||||||
Reference in New Issue
Block a user