From b0b35f659c7e3096af9fd7a9b27d587834ce9bd6 Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Fri, 17 Dec 2021 10:08:36 +0100 Subject: [PATCH] [IMP] *_online_adyen: more debugging on retrieved statement --- .../models/online_bank_statement_provider.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/account_bank_statement_import_online_adyen/models/online_bank_statement_provider.py b/account_bank_statement_import_online_adyen/models/online_bank_statement_provider.py index 5d982f165a..99f73aa9b9 100644 --- a/account_bank_statement_import_online_adyen/models/online_bank_statement_provider.py +++ b/account_bank_statement_import_online_adyen/models/online_bank_statement_provider.py @@ -88,9 +88,17 @@ def _adyen_get_settlement_details_file(self): raise UserError(_("%s \n\n %s") % (response.status_code, response.text)) # Check base64 decoding and padding of response.content. # Remember: response.text is unicode, response.content is in bytes. + text_count = len(response.text) + _logger.debug( + _("Retrieved %d length text from Adyen, starting with %s"), + text_count, + response.text[:64], + ) byte_count = len(response.content) _logger.debug( - _("Retrieved %d bytes, starting with %s"), byte_count, response.text[:32] + _("Retrieved %d bytes from Adyen, starting with %s"), + byte_count, + response.content[:64], ) # Make sure base64 encoded content contains multiple of 4 bytes. byte_padding = b"=" * (byte_count % 4)