laforge submitted this change.
osmo-smdpp: Actually dump Rx/Tx JSON in JSON format and not as python dict
Change-Id: Ieea3fd2d0f0239acfa6a5c4cfdbfd558d1a3e0ea
---
M osmo-smdpp.py
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index 6ae5be8..41cdfc8 100755
--- a/osmo-smdpp.py
+++ b/osmo-smdpp.py
@@ -252,13 +252,13 @@
# TODO: reject any non-JSON Content-type
content = json.loads(request.content.read())
- print("Rx JSON: %s" % content)
+ print("Rx JSON: %s" % json.dumps(content))
set_headers(request)
output = func(self, request, content) or {}
build_resp_header(output)
- print("Tx JSON: %s" % output)
+ print("Tx JSON: %s" % json.dumps(output))
return json.dumps(output)
return _api_wrapper
To view, visit change 35613. To unsubscribe, or for help writing mail filters, visit settings.