Skip to content

Commit

Permalink
Slack bot logging (#280)
Browse files Browse the repository at this point in the history
* Added inline logging for debugging slack-bot endpoint

* version bump
  • Loading branch information
mlhaufe authored Jul 29, 2024
1 parent 0f9fa39 commit 868b0ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@final-hill/cathedral",
"version": "0.10.1",
"version": "0.10.2",
"description": "Requirements management system",
"keywords": [],
"private": true,
Expand Down
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 868b0ff

Please sign in to comment.