Skip to content

Commit f75dbf0

Browse files
Merge pull request #1791 from edsonarios/issue1779
Debug output changed to a valid JSON
2 parents d287bc0 + 5f7cfe9 commit f75dbf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SoftLayer/transports/debug.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
:license: MIT, see LICENSE for more details.
77
"""
88

9+
import json
910
import logging
1011
import time
1112

@@ -49,7 +50,7 @@ def pre_transport_log(self, call):
4950

5051
def post_transport_log(self, call):
5152
"""Prints the result "Returned Data: \n%s" % (call.result)of an API call"""
52-
output = "Returned Data: \n{}".format(call.result)
53+
output = "Returned Data: \n{}".format(json.dumps(call.result))
5354
self.logger.debug(output)
5455

5556
def get_last_calls(self):

0 commit comments

Comments
 (0)