Skip to content

Commit

Permalink
dbg: log webhook headers
Browse files Browse the repository at this point in the history
  • Loading branch information
SantriptaSharma committed Oct 14, 2023
1 parent 7a776de commit 6373702
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ const responder = LanguageProcessor.then(processor => (
)
))

module.exports.hook = async (event) => (await responder).handler(event)
module.exports.hook = async (event) => {
console.log(`headers: ${JSON.stringify(event.headers)}`);
return (await responder).handler(event);
}

0 comments on commit 6373702

Please sign in to comment.