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> |
||
|---|---|---|
| .. | ||
| architecture.md | ||
| autotask_rest_api.md | ||
| backupchecks_autotask_integration_functional_design_living_document.md | ||
| backupchecks_autotask_integration_implementation_breakdown.md | ||
| backupchecks_autotask_integration_phase_2_implementation.md | ||
| changelog-claude.md | ||
| changelog.md | ||
| manifest.md | ||
| migrations.md | ||
| reporting-proposal.md | ||