Debug log

This commit is contained in:
MartinBraquet
2025-09-13 23:16:58 +02:00
parent 2d7b2da3e2
commit 6630f787bf

View File

@@ -19,7 +19,7 @@ export async function track(name: string, properties?: EventIds & EventData) {
try {
posthog?.capture(name, data)
const result = await insertUserEvent(name, data, db, null, commentId)
console.log('result', result)
console.debug('result', result)
} catch (e) {
console.error('error tracking event:', e)
}
@@ -68,7 +68,7 @@ function insertUserEvent(
userId?: string | null,
commentId?: string | null
) {
console.log('inserting user event', name, data, userId, commentId, db)
console.debug('inserting user event', name, data, userId, commentId, db)
return run(
db.from('user_events').insert({
name,