chore(app): log task errors locally

pull/1/head
Luca 8 months ago
parent ccf9728200
commit ff7282ea3b

@ -32,6 +32,7 @@ def send_messages():
for msg in send(msg.as_outbound() for msg in msgs if not msg.sent_at):
sent_msg_ids.append(msg.key)
except Exception as e:
logger.error(e)
sentry_sdk.capture_exception(e)
Message.objects.select_for_update().filter(id__in=sent_msg_ids).update(
@ -81,4 +82,5 @@ def send_reminders():
try:
reg.send_reminder()
except Exception as e:
logger.error(e)
sentry_sdk.capture_exception(e)

Loading…
Cancel
Save