omit request and response data length greater than 512

This commit is contained in:
debugtalk
2018-12-13 16:19:07 +08:00
parent 2d9695a1ec
commit 763d41617c
4 changed files with 62 additions and 32 deletions

View File

@@ -31,6 +31,9 @@ class ResponseObject(object):
else:
value = getattr(self.resp_obj, key)
if key in ["text", "content"]:
value = utils.omit_long_data(value)
self.__dict__[key] = value
return value
except AttributeError: