Skip to content

Commit

Permalink
posthog detailed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
artlu99 committed Jul 1, 2024
1 parent 8343f12 commit d5d38ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/shared/posthog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const sendPosthogEvent = async (env: Env, event: string, distinct_id: string) =>
// properties: { detail: 'detail' },

try {
console.log('posthog attempt', JSON.stringify(payload));

const response = await fetch(url, {
method: 'POST',
headers: headers,
Expand Down

0 comments on commit d5d38ba

Please sign in to comment.