laforge submitted this change.

View Change


Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved fixeria: Looks good to me, but someone else must approve
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.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ieea3fd2d0f0239acfa6a5c4cfdbfd558d1a3e0ea
Gerrit-Change-Number: 35613
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-MessageType: merged