Skip to content

Add diagnostic logging to email webhook handler#623

Merged
bokelley merged 2 commits into
mainfrom
bokelley/email-tracking-fix
Jan 5, 2026
Merged

Add diagnostic logging to email webhook handler#623
bokelley merged 2 commits into
mainfrom
bokelley/email-tracking-fix

Conversation

@bokelley

@bokelley bokelley commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add diagnostic logging at key checkpoints in the prospect email webhook handler to identify where email tracking is failing
  • The webhook processes emails but appears to stop after contact creation without storing activities

Logging Added

  • After contact creation: "Created/updated email contacts"
  • Before insight extraction: "Starting insight extraction"
  • After insight extraction: "Completed insight extraction"
  • Before activity storage: "Storing email activity"
  • After activity storage: "Stored email activity, linking contacts"
  • After contact linking: "Linked contacts to email activity"

Test plan

  • Deploy and send a test email to addie+prospect@updates.agenticadvertising.org
  • Check fly logs to see which checkpoint is reached before failure
  • Use the new logging info to identify and fix the root cause

🤖 Generated with Claude Code

bokelley and others added 2 commits January 5, 2026 10:15
Track progress through prospect email processing to identify where
tracking is failing. Added logs at key checkpoints:
- After contact creation/update
- Before/after insight extraction
- Before/after activity storage
- After contact linking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 583b877 into main Jan 5, 2026
6 checks passed
@bokelley bokelley deleted the bokelley/email-tracking-fix branch January 5, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant