laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/35613?usp=email )
Change subject: osmo-smdpp: Actually dump Rx/Tx JSON in JSON format and not as python dict ......................................................................
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(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved fixeria: Looks good to me, but someone else must approve
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