Skip to content

Commit 6e9340a

Browse files
[Add] json.dumps(val,indent=2) in prettify_limit
1 parent 5f8de81 commit 6e9340a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/Utilities/CommonUtil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def prettify(key, val):
224224
print_json(data=val)
225225
else:
226226
print(color + "%s = " % (key), end="")
227-
print(str(val)[:prettify_limit])
227+
print(json.dumps(val,indent=2)[:prettify_limit])
228228

229229
expression = "%s = %s" % (key, json.dumps(val, indent=2, sort_keys=True)[:prettify_limit])
230230
if debug_status and key not in dont_prettify_on_server:

0 commit comments

Comments
 (0)