[packages] error log test ?
I make one test for add error in wagtail logs not convinced, probably better to send an email?
# in update_packages()
from wagtail.core.models import Page
from wagtail.core.log_actions import log
page =Page.objects.get(title="Packages")
log(
instance=page, action='wagtail.workflow.cancel',
data={"error":"Exception xxxx"},
title=f"[Update] Something went wrong!"
)
can view result in admin: reports -> site history
Edited by patrick