Skip to content

Commit

Permalink
[IMP] *_online_adyen: more debugging on retrieved statement
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 committed Dec 17, 2021
1 parent dc3a629 commit b0b35f6
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0b35f6

Please sign in to comment.