Skip to content

Commit e5c6a06

Browse files
msukkariclaude
andcommitted
chore: remove debug logging from posthog captureEvent
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9ade8c3 commit e5c6a06

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/web/src/lib/posthog.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import { PostHog } from 'posthog-node'
2-
import { createLogger, env, SOURCEBOT_VERSION } from '@sourcebot/shared'
2+
import { env, SOURCEBOT_VERSION } from '@sourcebot/shared'
33
import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies';
44
import * as Sentry from "@sentry/nextjs";
55
import { PosthogEvent, PosthogEventMap } from './posthogEvents';
66
import { cookies, headers } from 'next/headers';
77
import { auth } from '@/auth';
88
import { getVerifiedApiObject } from '@/withAuthV2';
99

10-
const logger = createLogger('posthog');
11-
1210
/**
1311
* @note: This is a subset of the properties stored in the
1412
* ph_phc_<id>_posthog cookie.
@@ -95,8 +93,6 @@ export async function captureEvent<E extends PosthogEvent>(event: E, properties:
9593
flushInterval: 0
9694
})
9795

98-
logger.debug(`Capturing event: ${event}`, { distinctId, host, ...properties });
99-
10096
posthog.capture({
10197
event,
10298
properties: {

0 commit comments

Comments
 (0)