Previous debug code only logged when tickets were found, making it impossible to verify that the function was being called at all. Changes: - Move logging outside the if rows: block - Always create audit log entry for every run import - Log "No open tickets found" when rows is empty - Use commit() instead of flush() to ensure persistence - Add exception logging to catch any errors in debug code - New event_type "ticket_link_error" for debug code failures Now every email import will create a ticket_link_debug entry showing: - Whether the function was called - How many tickets were found (0 or more) - Details of each ticket if found Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| containers/backupchecks | ||
| deploy | ||
| docs | ||
| .gitignore | ||
| .last-branch | ||
| build-and-push.sh | ||
| LICENSE | ||
| README.md | ||
| TODO-audit-logging.md | ||
| TODO-documentation.md | ||
| TODO-reports-improvements.md | ||
| version.txt | ||