TritonDataCenter / python-manta

Python SDK for Manta (community maintained)
MIT License
25 stars 18 forks source link

Fixed a bug in which debug logging of a request with body longer than… #40

Closed mnako closed 8 years ago

mnako commented 8 years ago

… 1024 bytes raised a TypeError while trying to concat bytes to str. Now body of the request is decoded into a utf-8 str with incorrect bytes being backslash-replaced. Since the body_str is used for debugging only, this should be enough.

Tested with and without TEST_DEBUG in env. We probably should include that in the docs on Development and Testing, btw.