Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» clean logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince Lwt committed Aug 16, 2023
1 parent f8b9e49 commit 8c581e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/api/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,11 @@ export default async function handler(req: NextRequest) {

for (const event of sorted) {
try {
console.log(event)
await registerEvent(cleanEvent(event))
} catch (e: any) {
console.error(`Error handling event.`)
console.error(`Error ingesting event.`)
// Edge functions logs are limited to 2kb
console.error(e)
console.error(e.message)
}
}

Expand Down

1 comment on commit 8c581e2

@vercel
Copy link

@vercel vercel bot commented on 8c581e2 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.