mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-03 12:45:50 -04:00
Debug log
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user