zio/stable
Eric Bailey 2023-12-09 17:10:29 -06:00 committed by GitHub
parent 97b54b51c6
commit 69a0a0bc41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -30,7 +30,6 @@ function getClient(): SegmentClient {
} }
export const track: TrackEvent = async (...args) => { export const track: TrackEvent = async (...args) => {
logger.info('analytics: track', {args})
await getClient().track(...args) await getClient().track(...args)
} }
@ -40,11 +39,9 @@ export function useAnalytics(): AnalyticsMethods {
if (hasSession) { if (hasSession) {
return { return {
async screen(...args) { async screen(...args) {
logger.info('analytics: screen', {args})
await getClient().screen(...args) await getClient().screen(...args)
}, },
async track(...args) { async track(...args) {
logger.info('analytics: track', {args})
await getClient().track(...args) await getClient().track(...args)
}, },
} }

View File

@ -30,7 +30,6 @@ function getClient(): SegmentClient {
} }
export const track: TrackEvent = async (...args) => { export const track: TrackEvent = async (...args) => {
logger.info('analytics: track', {args})
await getClient().track(...args) await getClient().track(...args)
} }
@ -40,11 +39,9 @@ export function useAnalytics(): AnalyticsMethods {
if (hasSession) { if (hasSession) {
return { return {
async screen(...args) { async screen(...args) {
logger.info('analytics: screen', {args})
await getClient().screen(...args) await getClient().screen(...args)
}, },
async track(...args) { async track(...args) {
logger.info('analytics: track', {args})
await getClient().track(...args) await getClient().track(...args)
}, },
} }