Skip to content

Commit 8a9417f

Browse files
committed
[FIX] pos_adyen: Add logger for Adyen
To fix problems with lost payments in Adyen we add loggers closes odoo#93902 Signed-off-by: Quentin Lejeune (qle) <[email protected]>
1 parent 91ceb95 commit 8a9417f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

addons/pos_adyen/controllers/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ def notification(self):
2828
payment_method.adyen_latest_diagnosis = data['SaleToPOIResponse']['MessageHeader']['ServiceID']
2929
else:
3030
payment_method.adyen_latest_response = json.dumps(data)
31+
_logger.info('notification writed from adyen\n%s', data)
3132
else:
3233
_logger.error('received a message for a terminal not registered in Odoo: %s', terminal_identifier)

addons/pos_adyen/models/pos_payment_method.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def _adyen_diagnosis_request_data(self, pos_config_name):
7979
}
8080

8181
def get_latest_adyen_status(self, pos_config_name):
82+
_logger.info('get_latest_adyen_status\n%s', pos_config_name)
8283
self.ensure_one()
8384

8485
# Poll the status of the terminal if there's no new

0 commit comments

Comments
 (0)