Skip to content

Commit 045a9d3

Browse files
authored
Merge pull request #26 from huntflow/fix-debug-logging-of-response-body
Fix debug logging of response body
2 parents 28ac61f + 536d7fb commit 045a9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tortik/page/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ def _on_fetch(response, name):
207207
content_type = response.headers.get('Content-Type', '').split(';')[0]
208208
response.data = None
209209
self.log.debug(
210-
'Got response for "%s" (code = %s, content_type = %s): %.100s',
211-
name, response.code, content_type, response.body,
210+
'Got response for "%s" (code = %s, content_type = %s): %.200s',
211+
name, response.code, content_type, response.body.decode('utf-8', errors='replace'),
212212
)
213213
try:
214214
if 'xml' in content_type:

0 commit comments

Comments
 (0)