backupchecks/docs
Ivo Oskamp c1aeee2a8c Always log ticket linking attempts, not just when tickets found
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>
2026-02-10 10:10:23 +01:00
..
architecture.md Auto-commit local changes before build (2026-01-01 16:09:56) 2026-01-01 16:09:56 +01:00
autotask_rest_api.md Restore Autotask PSA integration 2026-02-05 14:43:44 +01:00
backupchecks_autotask_integration_functional_design_living_document.md Restore Autotask PSA integration 2026-02-05 14:43:44 +01:00
backupchecks_autotask_integration_implementation_breakdown.md Restore Autotask PSA integration 2026-02-05 14:43:44 +01:00
backupchecks_autotask_integration_phase_2_implementation.md Restore Autotask PSA integration 2026-02-05 14:43:44 +01:00
changelog-claude.md Always log ticket linking attempts, not just when tickets found 2026-02-10 10:10:23 +01:00
changelog.md Add v0.1.25 to website changelog 2026-02-09 17:17:47 +01:00
manifest.md Auto-commit local changes before build (2026-01-01 16:09:56) 2026-01-01 16:09:56 +01:00
migrations.md Auto-commit local changes before build (2026-01-03 13:59:54) 2026-01-03 13:59:54 +01:00
reporting-proposal.md Auto-commit local changes before build (2026-01-03 15:17:01) 2026-01-03 15:17:01 +01:00