Skip to content

Commit

Permalink
Added inline logging for debugging slack-bot endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe committed Jul 29, 2024
1 parent 0f9fa39 commit bf3758e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/api/slack-bot/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export default defineEventHandler(async (event) => {
message: JSON.stringify(body.error.errors)
})

console.log('Slack event headers', JSON.stringify(headers))
console.log('Slack event body', rawBody)

if (!isValidSlackRequest(headers, rawBody))
throw createError({
statusCode: 403,
Expand Down

0 comments on commit bf3758e

Please sign in to comment.