diff --git a/notification/src/api/notification/notification.controller.js b/notification/src/api/notification/notification.controller.js index 8690b851b..c4ff5c6a8 100644 --- a/notification/src/api/notification/notification.controller.js +++ b/notification/src/api/notification/notification.controller.js @@ -21,8 +21,9 @@ async function handleNotification (request, response) { { 'Content-Type': 'application/json' }, JSON.stringify({ notificationResponse: '[accepted]' })) } catch (e) { + e.adyenRequestBody = `${body}` logger.error(e, - `Unexpected exception occurred. Received payload from Adyen: ${body}`) + 'Unexpected exception occurred.') return httpUtils.sendResponse(response, 500) } }