Skip to content

Commit

Permalink
fix: better debugging failed requests on tiny webhook throw
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Sep 12, 2024
1 parent 6614081 commit 4e24226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/lib/pubsub/webhook-tiny.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ module.exports = async (
if (err?.config?.url) {
const { method, url } = err.config
logger.warn(`${method} ${url} failed`, {
data: err.response?.data,
data: err.config.data,
response: err.response?.data,
status: err.response?.status
})
}
Expand Down

0 comments on commit 4e24226

Please sign in to comment.