Skip to content

Commit

Permalink
#52 log the payload received from adyen in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
LEQADA committed Apr 23, 2019
1 parent a6959d9 commit 4c0ee0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notification/src/api/notification/notification.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ async function handleNotification (request, response) {
{ 'Content-Type': 'application/json' },
JSON.stringify({ notificationResponse: '[accepted]' }))
} catch (e) {
logger.error(e, 'Unexpected exception occurred')
logger.error(e,
`Unexpected exception occurred. Received payload from Adyen: ${body}`)
return httpUtils.sendResponse(response, 500)
}
}
Expand Down

0 comments on commit 4c0ee0c

Please sign in to comment.